Skip to main content

PresetTree.Step.Attachment

A class in Root.Township, Alta.Woodcutting.

A tree attachment saved in a preset step: its prefab hash and its local position, rotation and uniform scale on the piece.

Constructors​

MemberWhat it is
Attachment()Creates a PresetTree.Step.Attachment with default values.

Fields​

4 private and internal fields
MemberWhat it is
private uint attachmentHashBacking field for AttachmentHash.
private Vector3 positionBacking field for Position.
private Quaternion rotationBacking field for Rotation.
private float scaleBacking field for Scale.

Properties​

MemberWhat it is
uint AttachmentHash { get; set; }Prefab hash of the TreeAttachment to spawn.
Vector3 Position { get; set; }Local position on the parent tree piece.
Quaternion Rotation { get; set; }Local rotation on the parent tree piece.
float Scale { get; set; }Uniform local scale (only the x scale is saved).

Used in​

Members of other types that take, return or hold a Attachment: