Particle Playground - Script Reference
3.0.1
Framework for controlling particles in the Unity Engine.
|
Wrapper class for the Transform component. This is updated outside- and read inside the multithreaded environment. More...
Public Member Functions | |
bool | Update () |
Update this PlaygroundTransformC, returns availability (not thread-safe). More... | |
void | UpdateMatrix () |
Updates the transform matrix. More... | |
bool | IsSameAs (Transform comparer) |
void | SetZeroRotation () |
void | SetFromTransform (Transform otherTransform) |
Sets data from a Transform (not thread-safe). More... | |
void | GetFromTransform (Transform otherTransform) |
Sets a Transform's position, rotation and scale from this wrapped Transform (not thread-safe). More... | |
void | SetLocalPosition (Transform otherTransform) |
Sets local position from another transform (not thread-safe). More... | |
void | SetPostitionAsLocal () |
int | GetInstanceID () |
Returns the instance id of this PlaygroundTransformC. More... | |
PlaygroundTransformC | Clone () |
Returns a copy of this PlaygroundTransformC. More... | |
Public Attributes | |
Transform | transform |
The Transform component the Playground Transform wrapper will base its calculation from. More... | |
int | instanceID |
The instance id. More... | |
bool | available |
Is this Playground Transform available for calculation? More... | |
Vector3 | position |
The position in units. More... | |
Vector3 | localPosition |
The local position (if parented) in units. More... | |
Vector3 | previousPosition |
The previous calculated position. More... | |
Vector3 | forward |
The forward axis (Transform forward). More... | |
Vector3 | up |
The upwards axis (Transform up). More... | |
Vector3 | right |
The right axis (Transform right). More... | |
Quaternion | rotation |
The rotation of this Playground Transform. More... | |
Quaternion | inverseRotation |
The inverse rotation of this Playground Transform (used for bounding boxes). More... | |
ScaleMethod | scaleMethod |
Vector3 | localScale |
The local scale of this Playground Transform. More... | |
Vector3 | lossyScale |
The lossy scale of this Playground Transform. More... | |
Matrix4x4 | transformMatrix = new Matrix4x4() |
The transform matrix. This can be used to set and get transform coordinates from another thread. More... | |
bool | unfolded |
Wrapper class for the Transform component. This is updated outside- and read inside the multithreaded environment.
PlaygroundTransformC ParticlePlayground.PlaygroundTransformC.Clone | ( | ) |
Returns a copy of this PlaygroundTransformC.
void ParticlePlayground.PlaygroundTransformC.GetFromTransform | ( | Transform | otherTransform | ) |
Sets a Transform's position, rotation and scale from this wrapped Transform (not thread-safe).
otherTransform | Other transform. |
int ParticlePlayground.PlaygroundTransformC.GetInstanceID | ( | ) |
Returns the instance id of this PlaygroundTransformC.
void ParticlePlayground.PlaygroundTransformC.SetFromTransform | ( | Transform | otherTransform | ) |
Sets data from a Transform (not thread-safe).
otherTransform | Other transform. |
void ParticlePlayground.PlaygroundTransformC.SetLocalPosition | ( | Transform | otherTransform | ) |
Sets local position from another transform (not thread-safe).
otherTransform | Other transform. |
bool ParticlePlayground.PlaygroundTransformC.Update | ( | ) |
Update this PlaygroundTransformC, returns availability (not thread-safe).
void ParticlePlayground.PlaygroundTransformC.UpdateMatrix | ( | ) |
Updates the transform matrix.
bool ParticlePlayground.PlaygroundTransformC.available |
Is this Playground Transform available for calculation?
Vector3 ParticlePlayground.PlaygroundTransformC.forward |
The forward axis (Transform forward).
int ParticlePlayground.PlaygroundTransformC.instanceID |
The instance id.
Quaternion ParticlePlayground.PlaygroundTransformC.inverseRotation |
The inverse rotation of this Playground Transform (used for bounding boxes).
Vector3 ParticlePlayground.PlaygroundTransformC.localPosition |
The local position (if parented) in units.
Vector3 ParticlePlayground.PlaygroundTransformC.localScale |
The local scale of this Playground Transform.
Vector3 ParticlePlayground.PlaygroundTransformC.lossyScale |
The lossy scale of this Playground Transform.
Vector3 ParticlePlayground.PlaygroundTransformC.position |
The position in units.
Vector3 ParticlePlayground.PlaygroundTransformC.previousPosition |
The previous calculated position.
Vector3 ParticlePlayground.PlaygroundTransformC.right |
The right axis (Transform right).
Quaternion ParticlePlayground.PlaygroundTransformC.rotation |
The rotation of this Playground Transform.
Transform ParticlePlayground.PlaygroundTransformC.transform |
The Transform component the Playground Transform wrapper will base its calculation from.
Matrix4x4 ParticlePlayground.PlaygroundTransformC.transformMatrix = new Matrix4x4() |
The transform matrix. This can be used to set and get transform coordinates from another thread.
Vector3 ParticlePlayground.PlaygroundTransformC.up |
The upwards axis (Transform up).