Skip to main content

JengaStackingInstruction

A class in Root.Township, Alta.Inventory.

Stacking instructions that lay items in alternating crossed layers like a Jenga tower (menu Township/Stacking/Jenga Instructions).

Constructors​

MemberWhat it is
JengaStackingInstruction()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

3 private and internal fields
MemberWhat it is
private Bounds boundsBacking field for Bounds.
private Quaternion defaultRotationBacking field for DefaultRotation.
private bool isRotatedBaseBacking field for IsRotatedBase.

Properties​

MemberWhat it is
Bounds Bounds { get; }Size and centre of one stacked item, used for spacing and the gizmo.
Quaternion DefaultRotation { get; }Rotation of an item in the stack before the layer turn is applied.
bool IsRotatedBase { get; }When true, the bottom layer is turned 90 degrees.

Methods​

MemberWhat it is
override void DrawGizmos(Transform transform)Draws a wire box for one item's bounds at the transform.

Used in​

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