FCanvasTileItem

'Tile' item can override size and UV .

Windows
MacOS
Linux

Inheritance Hierarchy

FCanvasItem

FCanvasTileItem

Syntax

class FCanvasTileItem : public FCanvasItem

Remarks

'Tile' item can override size and UV .

Variables

Name Description

Public variable

const FMaterial...

 

MaterialRenderProxy

Material proxy for rendering.

Public variable

FVector2D

 

PivotPoint

Pivot point, as percentage of tile (0-1).

Public variable

FRotator

 

Rotation

Rotation.

Public variable

FVector2D

 

Size

Size of the tile.

Public variable

const FTexture ...

 

Texture

Texture to render.

Public variable

FVector2D

 

UV0

UV Coordinates 0 (Left/Top).

Public variable

FVector2D

 

UV1

UV Coordinates 0 (Right/Bottom).

Public variable

float

 

Z

Used to calculate depth.

Constructors

Name Description

Public function

FCanvasTileItem

(
    const FVector2D& InPosition,
    const FTexture* InTexture,
    const FLinearColor& InColor
)

Tile item using size from texture.

Public function

FCanvasTileItem

(
    const FVector2D& InPosition,
    const FVector2D& InSize,
    const FLinearColor& InColor
)

Tile item which uses the default white texture using given size.

Public function

FCanvasTileItem

(
    const FVector2D& InPosition,
    const FMaterialRenderProxy* In...,
    const FVector2D& InSize
)

Tile item with FMaterialRenderProxy using given size.

Public function

FCanvasTileItem

(
    const FVector2D& InPosition,
    const FTexture* InTexture,
    const FVector2D& InSize,
    const FLinearColor& InColor
)

Tile item with texture using given size.

Public function

FCanvasTileItem

(
    const FVector2D& InPosition,
    const FTexture* InTexture,
    const FVector2D& InUV0,
    const FVector2D& InUV1,
    const FLinearColor& InColor
)

Tile item with texture using size from texture specific UVs.

Public function

FCanvasTileItem

(
    const FVector2D& InPosition,
    const FMaterialRenderProxy* In...,
    const FVector2D& InSize,
    const FVector2D& InUV0,
    const FVector2D& InUV1
)

Tile item with FMaterialRenderProxy using given size and UVs.

Public function

FCanvasTileItem

(
    const FVector2D& InPosition,
    const FTexture* InTexture,
    const FVector2D& InSize,
    const FVector2D& InUV0,
    const FVector2D& InUV1,
    const FLinearColor& InColor
)

Tile item with texture using given size and specific UVs.

Overridden from FCanvasItem

Name Description

Public function Virtual

void

 

Draw

(
    FCanvas* InCanvas
)

Draw the item at the given coordinates.

References

Module

Engine

Header

Runtime/Engine/Public/CanvasItem.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback