Show / Hide Table of Contents

Class CanvasTransform

Building block to set up User Interface hierarchies. Use this as your first element in the Interface hierarchy.

Inheritance
System.Object
SceneComponent
CanvasTransform
Implements
IComponent
Inherited Members
SceneComponent.Name
SceneComponent.Active
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Fusee.Engine.Core.Scene
Assembly: Fusee.Engine.Core.dll
Syntax
public class CanvasTransform : SceneComponent, IComponent

Constructors

CanvasTransform(CanvasRenderMode)

Initializes a new instance of the CanvasTransform class.

Declaration
public CanvasTransform(CanvasRenderMode canvasRenderMode)
Parameters
Type Name Description
CanvasRenderMode canvasRenderMode

The canvas render mode. Is the UI on this canvas placed in the 3D world or overlaid onto the 2D screen.

Fields

CanvasRenderMode

The canvas render mode. Is the UI on this canvas placed in the 3D world or overlaid onto the 2D screen.

Declaration
public CanvasRenderMode CanvasRenderMode
Field Value
Type Description
CanvasRenderMode

Scale

Scale factor for the user given offsets that define the sizes if the canvas' child elements. This becomes important when rendering in SCREEN mode.

Declaration
public float2 Scale
Field Value
Type Description
float2

ScreenSpaceSize

Absolute size of the Canvas. First element in the interface hierarchy.

Declaration
public MinMaxRect ScreenSpaceSize
Field Value
Type Description
MinMaxRect

Size

Absolute size of the Canvas. First element in the interface hierarchy.

Declaration
public MinMaxRect Size
Field Value
Type Description
MinMaxRect

Implements

IComponent
Generated by DocFX
GitHub Repo
Back to top