C# Client 0.0.0.7
C# Library to interface with Corelink
Loading...
Searching...
No Matches
Corelink.TransformPasser Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TransformPasser() [1/2]

Corelink.TransformPasser.TransformPasser ( )

Default Empty Constructor, at origin with scale of 1, 1, 1.

Definition at line 24 of file TransformPasser.cs.

◆ TransformPasser() [2/2]

Corelink.TransformPasser.TransformPasser ( Transform transform)

Constructor to create TransformPasser that holds position, rotation, and scale of transform argument.

Parameters
transformTransform of the gameObject to pass
Returns
TransformPasser object set to values of Transform

Definition at line 31 of file TransformPasser.cs.

Member Function Documentation

◆ LoadTransform()

void Corelink.TransformPasser.LoadTransform ( Transform destination,
TransformPasser saved )

Load function to extract values from TransformPasser into an object's transform Call within Update()

Parameters
destinationTransform to load data into
savedTransformPasser to pull data from

saved.LoadTransform(destination, saved);

Definition at line 49 of file TransformPasser.cs.

Member Data Documentation

◆ eulerAngles

Vector3 Corelink.TransformPasser.eulerAngles = new Vector3(0, 0, 0)

Definition at line 15 of file TransformPasser.cs.

◆ localEulerAngles

Vector3 Corelink.TransformPasser.localEulerAngles = new Vector3(0, 0, 0)

Definition at line 16 of file TransformPasser.cs.

◆ localPosition

Vector3 Corelink.TransformPasser.localPosition = new Vector3(0, 0, 0)

Definition at line 14 of file TransformPasser.cs.

◆ localRotation

Quaternion Corelink.TransformPasser.localRotation

Definition at line 19 of file TransformPasser.cs.

◆ localScale

Vector3 Corelink.TransformPasser.localScale = new Vector3(1, 1, 1)

Definition at line 17 of file TransformPasser.cs.

◆ position

Vector3 Corelink.TransformPasser.position = new Vector3(0, 0, 0)

Definition at line 13 of file TransformPasser.cs.

◆ rotation

Quaternion Corelink.TransformPasser.rotation

Definition at line 18 of file TransformPasser.cs.


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