SerializedTransform
A class in Root.Township, Alta.Crafting.
A saved position, rotation and scale, used for crafting spawn offsets and piece positions.
- Listed in Crafting and making
Constructors
| Member | What it is |
|---|---|
SerializedTransform() | Creates a SerializedTransform with default values. |
Fields
| Member | What it is |
|---|---|
Vector3 position | Saved position. |
Quaternion rotation | Saved rotation. |
Vector3 scale | Saved local scale. |
Methods
| Member | What it is |
|---|---|
static SerializedTransform Save(Transform transform) | Captures a transform's local values, or its position and rotation relative to a given matrix. |
static SerializedTransform Save(Transform transform, Matrix4x4 worldToLocal) | Captures a transform's local values, or its position and rotation relative to a given matrix. |
Used in
Members of other types that take, return or hold a SerializedTransform: