Class FusCanvasTransform
Building block to set up User Interface hierarchies. Use this as your first element in the Interface hierarchy.
Implements
Inherited Members
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.Serialization.V1
Assembly: Fusee.Serialization.dll
Syntax
public class FusCanvasTransform : FusComponent, IComponent
Constructors
FusCanvasTransform(CanvasRenderMode)
Initializes a new instance of the FusCanvasTransform class.
Declaration
public FusCanvasTransform(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 |