Skip to main content

SerializedTransform

A class in Root.Township, Alta.Crafting.

A saved position, rotation and scale, used for crafting spawn offsets and piece positions.

Constructors​

MemberWhat it is
SerializedTransform()Creates a SerializedTransform with default values.

Fields​

MemberWhat it is
Vector3 positionSaved position.
Quaternion rotationSaved rotation.
Vector3 scaleSaved local scale.

Methods​

MemberWhat 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: