Always snap to grid
UE2:Canvas (UT2003)
Object >> Canvas |
Contents
- 1 Properties
- 1.1 bCenter
- 1.2 bNoSmooth
- 1.3 bRenderLevel
- 1.4 ClipX
- 1.5 ClipY
- 1.6 ColorModulate
- 1.7 CurX
- 1.8 CurY
- 1.9 CurYL
- 1.10 DrawColor
- 1.11 Font
- 1.12 FontScaleX
- 1.13 FontScaleY
- 1.14 MedFont
- 1.15 MedFontName
- 1.16 OrgX
- 1.17 OrgY
- 1.18 pCanvasUtil
- 1.19 SizeX
- 1.20 SizeY
- 1.21 SmallFont
- 1.22 SmallFontName
- 1.23 SpaceX
- 1.24 SpaceY
- 1.25 Style
- 1.26 TinyFont
- 1.27 TinyFontName
- 1.28 Viewport
- 1.29 Z
- 2 Functions
- 2.1 Static native functions
- 2.2 Other static functions
- 2.3 Native functions
- 2.3.1 Clear
- 2.3.2 DrawActor
- 2.3.3 DrawPortal
- 2.3.4 DrawScreenActor
- 2.3.5 DrawText
- 2.3.6 DrawTextClipped
- 2.3.7 DrawTextJustified
- 2.3.8 DrawTile
- 2.3.9 DrawTileClipped
- 2.3.10 DrawTileJustified
- 2.3.11 DrawTileScaled
- 2.3.12 DrawTileStretched
- 2.3.13 GetCameraLocation
- 2.3.14 SetScreenLight
- 2.3.15 SetScreenProjector
- 2.3.16 StrLen
- 2.3.17 TextSize
- 2.3.18 WorldToScreen
- 2.3.19 WrapStringToArray
- 2.4 Events
- 2.5 Other instance functions
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Canvas: A drawing canvas. This is a built-in Unreal class and it shouldn't be modified.
Notes. To determine size of a drawable object, set Style to STY_None, remember CurX, draw the thing, then inspect CurX and CurYL.
Properties[edit]
bCenter[edit]
Type: bool
Whether to center the text.
bNoSmooth[edit]
Type: bool
Don't bilinear filter.
bRenderLevel[edit]
Type: bool
Default value: True
ClipX[edit]
Type: float
ClipY[edit]
Type: float
Bottom right clipping region.
ColorModulate[edit]
Type: Object.Plane
sjs - Modulate all colors by this before rendering
Default value:
Member | Value |
---|---|
W | 1.0 |
X | 1.0 |
Y | 1.0 |
Z | 1.0 |
CurX[edit]
Type: float
CurY[edit]
Type: float
Current position for drawing.
CurYL[edit]
Type: float
Largest Y size since DrawText.
DrawColor[edit]
Type: Object.Color
Color for drawing.
Default value:
Member | Value |
---|---|
A | 255 |
B | 127 |
G | 127 |
R | 127 |
Font[edit]
Type: Font
Font for DrawText.
Default value: DefaultFont
FontScaleX[edit]
Type: float
Default value: 1.0
FontScaleY[edit]
Type: float
Scale for DrawText & DrawTextClipped. // gam
Default value: 1.0
MedFont[edit]
Type: Font
MedFontName[edit]
Type: string
Default value: "UT2003Fonts.FontMono800x600"
OrgX[edit]
Type: float
OrgY[edit]
Type: float
Origin for drawing.
pCanvasUtil[edit]
Type: pointer
Modifiers: const
Default value: 0
SizeX[edit]
Type: int
Modifiers: const
SizeY[edit]
Type: int
Modifiers: const
Zero-based actual dimensions.
SmallFont[edit]
Type: Font
SmallFontName[edit]
Type: string
Default value: "UT2003Fonts.FontMono"
SpaceX[edit]
Type: float
SpaceY[edit]
Type: float
Spacing for after Draw*.
Style[edit]
Type: byte
Drawing style STY_None means don't draw.
Default value: 1
TinyFont[edit]
Type: Font
TinyFontName[edit]
Type: string
Default value: "UT2003Fonts.FontMono"
Viewport[edit]
Type: Viewport
Modifiers: const
Viewport that owns the canvas.
Z[edit]
Type: float
Z location. 1=no screenflash, 2=yes screenflash.
Default value: 1.0