FAST SDK Coding Reference 1.0.3
Loading...
Searching...
No Matches
AlignmentRectTransform Class Reference

Provides alignment adjustments to a RectTransform using offsets. More...

Inheritance diagram for AlignmentRectTransform:
AlignmentTransform

Public Attributes

Vector2 offsetSize
 Settings, Inspector, Code
The offset added to the FAST.AlignmentRectTransform.initialSize.
 
Canvas parentCanvas
 Runtime
The canvas this RectTransform belongs to.
 
- Public Attributes inherited from AlignmentTransform
Camera drawingCamera
 Inspector, Code
The camera to render AlignmentTool visual highlight, label, and bounding box to.
 
Vector3 offsetPosition
 Settings, Inspector, Code
The offset added to the FAST.AlignmentTransform.initialPosition.
 
float offsetRotation
 Settings, Inspector, Code
The Z-axis offset added to the FAST.AlignmentTransform.initialRotation.
 
float offsetScale
 Settings, Inspector, Code
The uniform offset added to the FAST.AlignmentTransform.initialScale.
 

Protected Attributes

Vector2 initialSize
 Runtime
The initial size at runtime, which is set in the Editor.
 
- Protected Attributes inherited from AlignmentTransform
Vector3 initialPosition
 Runtime
The initial position at runtime, which is set in the Editor.
 
Quaternion initialRotation
 Runtime
The initial rotation at runtime, which is set in the Editor.
 
Vector3 initialScale
 Runtime
The initial scale at runtime, which is set in the Editor.
 

Detailed Description

Provides alignment adjustments to a RectTransform using offsets.

Use this on a GameObject which may need to have its position, rotation, scale, or size adjusted at runtime. It is meant to be used with the AlignmentTool prefab and FAST.AlignmentRectTransformSettings to load, edit, and save transform offsets.

See also
UnityEngine.RectTransform
UnityEngine.GameObject
UnityEngine.Canvas

Member Data Documentation

◆ initialSize

Vector2 initialSize
protected

Runtime
The initial size at runtime, which is set in the Editor.

◆ offsetSize

Vector2 offsetSize

Settings, Inspector, Code
The offset added to the FAST.AlignmentRectTransform.initialSize.

◆ parentCanvas

Canvas parentCanvas

Runtime
The canvas this RectTransform belongs to.


The documentation for this class was generated from the following file: