Struct TransformValues
Represents a compact TRS (translation, rotation, scale) structure.
Inherited Members
Namespace: Unity.Cloud.DataStreaming.Runtime
Assembly: solution.dll
Syntax
public struct TransformValues
Constructors
TransformValues(double3, quaternion, float)
Creates a TransformValues from a position, rotation, and scale.
Declaration
public TransformValues(double3 position, quaternion rotation, float scale)
Parameters
Type | Name | Description |
---|---|---|
double3 | position | The position of the transform. |
quaternion | rotation | The rotation of the transform. |
float | scale | The uniform scale of the transform. |
Properties
Position
The position of the transform.
Declaration
public double3 Position { get; set; }
Property Value
Type | Description |
---|---|
double3 |
Rotation
The rotation of the transform.
Declaration
public quaternion Rotation { get; set; }
Property Value
Type | Description |
---|---|
quaternion |
Scale
The scale of the transform.
Declaration
public float Scale { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
FromTransform(Transform)
Convert a single precision Unity Transform instance to a new TransformValues instance.
Declaration
public static TransformValues FromTransform(Transform transform)
Parameters
Type | Name | Description |
---|---|---|
Transform | transform | The instance to convert. |
Returns
Type | Description |
---|---|
TransformValues | A new TransformValues instance. |