Worst-case scenario: the UEd Goblin wipes the map and burns down your house.
UE2:Canvas (UE2Runtime)
From Unreal Wiki, The Unreal Engine Documentation Site
| Object >> Canvas |
| 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.
[edit] Properties
[edit] bCenter
Type: bool
Whether to center the text.
[edit] bNoSmooth
Type: bool
Don't bilinear filter.
[edit] ClipX
Type: float
[edit] ClipY
Type: float
Bottom right clipping region.
[edit] CurX
Type: float
The canvas current drawing position in the X Axis (Left to Right)
[edit] CurY
Type: float
The canvas current drawing position in the Y Axis (Top to Bottom)
[edit] CurYL
Type: float
Largest Y size since DrawText.
[edit] DrawColor
Type: Object.Color
Color for drawing.
Default value:
| Member | Value |
|---|---|
| A | 255 |
| B | 127 |
| G | 127 |
| R | 127 |
[edit] Font
Type: Font
Font for DrawText.
Default value: Font'Engine.DefaultFont'
[edit] MedFont
Type: Font
[edit] MedFontName
Type: string
Default value: "EM_Fonts_T.FontMono800x600"
[edit] OrgX
Type: float
[edit] OrgY
Type: float
Origin for drawing.
[edit] pCanvasUtil
Type: int
Modifiers: const
[edit] SizeX
Type: int
Modifiers: const
The screen size in X Axis
[edit] SizeY
Type: int
Modifiers: const
The screen size in Y Axis
[edit] SmallFont
Type: Font
[edit] SmallFontName
Type: string
Default value: "EM_Fonts_T.FontMono"
[edit] SpaceX
Type: float
[edit] SpaceY
Type: float
Spacing for after Draw*.
[edit] Style
Type: byte
Drawing style STY_None means don't draw.
Default value: 1
[edit] TinyFont
Type: Font
[edit] TinyFontName
Type: string
Default value: "EM_Fonts_T.FontMono"
[edit] Viewport
Type: Viewport
Modifiers: const
Viewport that owns the canvas.
[edit] Z
Type: float
Z location. 1=no screenflash, 2=yes screenflash.
Default value: 1.0
[edit] Functions
[edit] Static functions
[edit] MakeColor
Make a color with the input Red, Green and Blue levels
[edit] Native functions
[edit] 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.
[edit] DrawPortal
[edit] DrawText
Draw a text.
[edit] DrawTextClipped
[edit] DrawTextJustified
[edit] DrawTile
[edit] DrawTileClipped
[edit] DrawTileJustified
[edit] DrawTileScaled
[edit] DrawTileStretched
[edit] StrLen
[edit] TextSize
[edit] WrapStringToArray
[edit] Events
[edit] Reset
Reset all canvas variables to their defaults
[edit] Other instance functions
[edit] DrawBox
Draw a box. width is the box size in the X Axis and height is the size in Y Axis.
[edit] DrawBracket
[edit] DrawHorizontal
[edit] DrawIcon
Draw a scaled image.
[edit] DrawLine
[edit] DrawPattern
[edit] DrawRect
[edit] DrawVertical
Draw a vertical line(Y Axis)
