Worst-case scenario: the UEd Goblin wipes the map and burns down your house.
UE2:Canvas (UE2Runtime)
Object >> Canvas |
Contents
- 1 Properties
- 1.1 bCenter
- 1.2 bNoSmooth
- 1.3 ClipX
- 1.4 ClipY
- 1.5 CurX
- 1.6 CurY
- 1.7 CurYL
- 1.8 DrawColor
- 1.9 Font
- 1.10 MedFont
- 1.11 MedFontName
- 1.12 OrgX
- 1.13 OrgY
- 1.14 pCanvasUtil
- 1.15 SizeX
- 1.16 SizeY
- 1.17 SmallFont
- 1.18 SmallFontName
- 1.19 SpaceX
- 1.20 SpaceY
- 1.21 Style
- 1.22 TinyFont
- 1.23 TinyFontName
- 1.24 Viewport
- 1.25 Z
- 2 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
bCenter
Type: bool
Whether to center the text.
bNoSmooth
Type: bool
Don't bilinear filter.
ClipX
Type: float
ClipY
Type: float
Bottom right clipping region.
CurX
Type: float
The canvas current drawing position in the X Axis (Left to Right)
CurY
Type: float
The canvas current drawing position in the Y Axis (Top to Bottom)
CurYL
Type: float
Largest Y size since DrawText.
DrawColor
Type: Object.Color
Color for drawing.
Default value:
Member | Value |
---|---|
A | 255 |
B | 127 |
G | 127 |
R | 127 |
Font
Type: Font
Font for DrawText.
Default value: Font'Engine.DefaultFont'
MedFont
Type: Font
MedFontName
Type: string
Default value: "EM_Fonts_T.FontMono800x600"
OrgX
Type: float
OrgY
Type: float
Origin for drawing.
pCanvasUtil
Type: int
Modifiers: const
SizeX
Type: int
Modifiers: const
The screen size in X Axis
SizeY
Type: int
Modifiers: const
The screen size in Y Axis
SmallFont
Type: Font
SmallFontName
Type: string
Default value: "EM_Fonts_T.FontMono"
SpaceX
Type: float
SpaceY
Type: float
Spacing for after Draw*.
Style
Type: byte
Drawing style STY_None means don't draw.
Default value: 1
TinyFont
Type: Font
TinyFontName
Type: string
Default value: "EM_Fonts_T.FontMono"
Viewport
Type: Viewport
Modifiers: const
Viewport that owns the canvas.
Z
Type: float
Z location. 1=no screenflash, 2=yes screenflash.
Default value: 1.0
Functions
Static functions
MakeColor
Make a color with the input Red, Green and Blue levels
Native functions
DrawActor
Draw the the input actor with the other parameters. if WireFrame=True, the actor will be draw normaly but with another wireframe model around it. if ClearZ=True, the actor will be draw in front of everything. DisplayFOV is the FOV Angle of drawing.
DrawPortal
DrawText
Draw a text.
DrawTextClipped
DrawTextJustified
DrawTile
DrawTileClipped
DrawTileJustified
DrawTileScaled
DrawTileStretched
StrLen
TextSize
WrapStringToArray
Events
Reset
Reset all canvas variables to their defaults
Other instance functions
DrawBox
Draw a box. width is the box size in the X Axis and height is the size in Y Axis.
DrawBracket
DrawHorizontal
DrawIcon
Draw a scaled image.
DrawLine
DrawPattern
DrawRect
DrawVertical
Draw a vertical line(Y Axis)