Astra Unity 2.6.6
Astra Unity Plugin
Astra.Utils.AstraTransform Class Reference
Inheritance diagram for Astra.Utils.AstraTransform:

Public Member Functions

void OnBeforeSerialize ()
 
void OnAfterDeserialize ()
 
void CopyValues (AstraTransform other)
 Copies all data except parent/ownership More...
 
void SetParentInPlace (AstraTransform parentNode)
 

Static Public Member Functions

static AstraTransformGraph BuildHierarchyMapFromRig (PrimitiveRig rig)
 
static AstraTransformGraph BuildHierarchyMapFromRig (Astra.Asset.RigTarget source, PrimitiveRigTarget target)
 
static AstraTransformGraph BuildHierarchyMapFromRig (AstraTransformGraph source, PrimitiveRigTarget target)
 
static AstraTransformGraph BuildHierarchyMapFromRig (PrimitiveRig rig, PrimitiveRigTarget target)
 

Public Attributes

string id
 
string name
 
AstraTransform _parent = null
 
string parentId = null
 
List< AstraTransformchildren = new List<AstraTransform>()
 

Protected Member Functions

void SyncChildren (AstraTransform currentTransform)
 

Protected Attributes

Vector3 _localPosition = Vector3.zero
 
Vector3 _worldPosition = Vector3.zero
 
Quaternion _localRotation = Quaternion.identity
 
Quaternion _worldRotation = Quaternion.identity
 
Vector3 _localScale = Vector3.one
 
bool _frozen = false
 

Properties

bool Frozen [getset]
 
AstraTransform parent [getset]
 
Vector3 localScale [getset]
 
Vector3?? localPosition [getset]
 
Vector3? position [getset]
 
Quaternion? localRotation [getset]
 
Quaternion? rotation [getset]
 
Matrix4x4 worldToLocalMatrix [get]
 
int childCount [get]
 
Vector3 eulerAngles [getset]
 
AstraTransform root [get]
 

Detailed Description

Attempts to provide functionality identical to UnityEngine.Transform but w/o gameobjects This means it can be used in threads

Member Function Documentation

◆ CopyValues()

void Astra.Utils.AstraTransform.CopyValues ( AstraTransform  other)
inline

Copies all data except parent/ownership

Parameters
other

◆ SyncChildren()

void Astra.Utils.AstraTransform.SyncChildren ( AstraTransform  currentTransform)
inlineprotected

Recalculates all childrens world positions based on the current node


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