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

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

Inheritance diagram for AlignmentTransform:
AlignmentRectTransform

Public Attributes

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

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 Transform using offsets.

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

See also
UnityEngine.Transform
UnityEngine.GameObject

Member Data Documentation

◆ drawingCamera

Camera drawingCamera

Inspector, Code
The camera to render AlignmentTool visual highlight, label, and bounding box to.

For FAST.AlignmentTransform, the camera must be specified.

For FAST.AlignmentRectTransform, if the camera is null the visuals are rendered as a screen space overlay.

◆ initialPosition

Vector3 initialPosition
protected

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

◆ initialRotation

Quaternion initialRotation
protected

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

◆ initialScale

Vector3 initialScale
protected

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

◆ offsetPosition

Vector3 offsetPosition

Settings, Inspector, Code
The offset added to the FAST.AlignmentTransform.initialPosition.

◆ offsetRotation

float offsetRotation

Settings, Inspector, Code
The Z-axis offset added to the FAST.AlignmentTransform.initialRotation.

◆ offsetScale

float offsetScale

Settings, Inspector, Code
The uniform offset added to the FAST.AlignmentTransform.initialScale.


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