C# Client 0.0.0.7
C# Library to interface with Corelink
|
This class is a utility class to serialize the unity Transform class in order to pass/retrieve to/from corelink. More...
Public Member Functions | |
TransformPasser () | |
Default Empty Constructor, at origin with scale of 1, 1, 1. | |
TransformPasser (Transform transform) | |
Constructor to create TransformPasser that holds position, rotation, and scale of transform argument. | |
void | LoadTransform (Transform destination, TransformPasser saved) |
Load function to extract values from TransformPasser into an object's transform Call within Update() | |
Public Attributes | |
Vector3 | position = new Vector3(0, 0, 0) |
Vector3 | localPosition = new Vector3(0, 0, 0) |
Vector3 | eulerAngles = new Vector3(0, 0, 0) |
Vector3 | localEulerAngles = new Vector3(0, 0, 0) |
Vector3 | localScale = new Vector3(1, 1, 1) |
Quaternion | rotation |
Quaternion | localRotation |
This class is a utility class to serialize the unity Transform class in order to pass/retrieve to/from corelink.
Definition at line 11 of file TransformPasser.cs.
Corelink.TransformPasser.TransformPasser | ( | ) |
Default Empty Constructor, at origin with scale of 1, 1, 1.
Definition at line 24 of file TransformPasser.cs.
Corelink.TransformPasser.TransformPasser | ( | Transform | transform | ) |
Constructor to create TransformPasser that holds position, rotation, and scale of transform argument.
transform | Transform of the gameObject to pass |
Definition at line 31 of file TransformPasser.cs.
void Corelink.TransformPasser.LoadTransform | ( | Transform | destination, |
TransformPasser | saved ) |
Load function to extract values from TransformPasser into an object's transform Call within Update()
destination | Transform to load data into |
saved | TransformPasser to pull data from |
saved.LoadTransform(destination, saved);
Definition at line 49 of file TransformPasser.cs.
Vector3 Corelink.TransformPasser.eulerAngles = new Vector3(0, 0, 0) |
Definition at line 15 of file TransformPasser.cs.
Vector3 Corelink.TransformPasser.localEulerAngles = new Vector3(0, 0, 0) |
Definition at line 16 of file TransformPasser.cs.
Vector3 Corelink.TransformPasser.localPosition = new Vector3(0, 0, 0) |
Definition at line 14 of file TransformPasser.cs.
Quaternion Corelink.TransformPasser.localRotation |
Definition at line 19 of file TransformPasser.cs.
Vector3 Corelink.TransformPasser.localScale = new Vector3(1, 1, 1) |
Definition at line 17 of file TransformPasser.cs.
Vector3 Corelink.TransformPasser.position = new Vector3(0, 0, 0) |
Definition at line 13 of file TransformPasser.cs.
Quaternion Corelink.TransformPasser.rotation |
Definition at line 18 of file TransformPasser.cs.