Mostly Harmless
UE3:Canvas (UDK)
From Unreal Wiki, The Unreal Engine Documentation Site
| Object >> Canvas |
| 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.
[edit] Properties
[edit] bCenter
Type: bool
Whether to center the text.
[edit] bNoSmooth
Type: bool
Don't bilinear filter.
[edit] Canvas
Type: pointer{FCanvas}
Modifiers: native, const
[edit] ClipX
Type: float
[edit] ClipY
Type: float
Bottom right clipping region.
[edit] ColorModulate
Type: Object.Plane
Default value:
| Member | Value |
|---|---|
| W | 1.0 |
| X | 1.0 |
| Y | 1.0 |
| Z | 1.0 |
[edit] CurX
Type: float
[edit] CurY
Type: float
Current position for drawing.
[edit] CurYL
Type: float
Largest Y size since DrawText.
[edit] DefaultTexture
Type: Texture2D
Default value: Texture2D'EngineResources.WhiteSquareTexture'
[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'EngineFonts.SmallFont'
[edit] OrgX
Type: float
[edit] OrgY
Type: float
Origin for drawing.
[edit] SceneView
Type: pointer{FSceneView}
Modifiers: native, const
[edit] SizeX
Type: int
Modifiers: const
[edit] SizeY
Type: int
Modifiers: const
[edit] Structs
[edit] CanvasIcon
Modifiers: native
Holds texture information with UV coordinates as well.
- Texture Texture
- Source texture
- float U
- UV coords
- float V
- UV coords
- float UL
- UV coords
- float VL
- UV coords
[edit] DepthFieldGlowInfo
Modifiers: native
info for glow when using depth field rendering
- bool bEnableGlow
- whether to turn on the outline glow (depth field fonts only)
- Object.LinearColor GlowColor
- base color to use for the glow
- Object.Vector2D GlowOuterRadius
- if bEnableGlow, outline glow outer radius (0 to 1, 0.5 is edge of character silhouette)
glow influence will be 0 at GlowOuterRadius.X and 1 at GlowOuterRadius.Y
- Object.Vector2D GlowInnerRadius
- if bEnableGlow, outline glow inner radius (0 to 1, 0.5 is edge of character silhouette)
glow influence will be 1 at GlowInnerRadius.X and 0 at GlowInnerRadius.Y
[edit] FontRenderInfo
Modifiers: native
information used in font rendering
- bool bClipText
- whether to clip text
- bool bEnableShadow
- whether to turn on shadowing
- DepthFieldGlowInfo GlowInfo
- depth field glow parameters (only usable if font was imported with a depth field)
[edit] Functions
[edit] Static functions
[edit] CreateFontRenderInfo
constructor for FontRenderInfo
[edit] Native functions
[edit] DeProject
transforms 2D screen coordinates into a 3D world-space origin and direction
Parameters:
- ScreenPos - screen coordinates in pixels
- WorldOrigin - out) - world-space origin vector
- WorldDirection - out) - world-space direction vector
[edit] Draw2DLine
[edit] DrawColorizedTile
[edit] DrawMaterialTile
Draws the emissive channel of a material to an axis-aligned quad at CurX,CurY.
Parameters:
- Mat - The material which contains the emissive expression to render.
- XL - The width of the quad in pixels.
- YL - The height of the quad in pixels.
- U - The U coordinate of the quad's upper left corner, in normalized coordinates.
- V - The V coordinate of the quad's upper left corner, in normalized coordinates.
- UL - The range of U coordinates which is mapped to the quad.
- VL - The range of V coordinates which is mapped to the quad.
[edit] DrawMaterialTileClipped
[edit] DrawRotatedMaterialTile
[edit] DrawRotatedTile
[edit] DrawText
[edit] DrawTextureDoubleLine
[edit] DrawTextureLine
[edit] DrawTile
[edit] DrawTileClipped
[edit] DrawTileStretched
[edit] PopTransform
Pops the topmost matrix from the canvas transform stack.
[edit] Project
Convert a 3D vector to a 2D screen coords.
[edit] PushTranslationMatrix
Pushes a translation matrix onto the canvas.
Parameters:
- TranslationVector - Translation vector to use to create the translation matrix.
[edit] SetDrawColor
[edit] SetPos
[edit] StrLen
[edit] TextSize
[edit] Events
[edit] Reset
[edit] Other instance functions
[edit] DrawBox
[edit] DrawIcon
Draw a CanvasIcon at the desired canvas position.
[edit] DrawIconSection
Draw a subsection of a CanvasIcon at the desired canvas position.
[edit] DrawRect
[edit] DrawTextCentered
[edit] DrawTextRA
Draws text right aligned from the current position.
[edit] DrawTexture
[edit] MakeIcon
Fake CanvasIcon constructor.
