Always snap to grid
UE2:Canvas (UT2004)
From Unreal Wiki, The Unreal Engine Documentation Site
| Object >> Canvas |
- Package:
- Engine
- No known subclasses.
| This is an auto-generated page and may need human attention. Please remove this 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.
bForceAlpha
Type: bool
Force all drawing to be alpha'ed
bNoSmooth
Type: bool
Don't bilinear filter.
bRenderLevel
Type: bool
Default value: True
ClipX
Type: float
ClipY
Type: float
Bottom right clipping region.
ColorModulate
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
Type: float
CurY
Type: float
Current position for drawing.
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: DefaultFont
FontScaleX
Type: float
Default value: 1.0
FontScaleY
Type: float
Scale for DrawText & DrawTextClipped. // gam
Default value: 1.0
ForcedAlpha
Type: float
How much to force
MedFont
Type: Font
MedFontName
Type: string
Modifiers: localized
Default value: "UT2003Fonts.FontMono800x600"
OrgX
Type: float
OrgY
Type: float
Origin for drawing.
pCanvasUtil
Type: pointer
Modifiers: const
Default value: 0
SizeX
Type: int
Modifiers: const
SizeY
Type: int
Modifiers: const
Zero-based actual dimensions.
SmallFont
Type: Font
SmallFontName
Type: string
Modifiers: localized
Default value: "UT2003Fonts.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
Modifiers: localized
Default value: "UT2003Fonts.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
