Skip to main content

InvertedTriangleStackingInstruction

A class in Root.Township, Alta.Inventory.

Stacking instructions asset that piles items in an inverted triangle inside a dock. Created from the Township/Stacking asset menu.

Constructors​

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

Fields​

5 private and internal fields
MemberWhat it is
private float baseWidthBacking field for BaseWidth.
private Quaternion defaultRotationBacking field for DefaultRotation.
private float diameterBacking field for Diameter.
private float spacingBacking field for Spacing.
private Vector3 toCenterBacking field for ToCenter.

Properties​

MemberWhat it is
float BaseWidth { get; }Width of the bottom row of the stack.
Quaternion DefaultRotation { get; }Rotation applied to each stacked item.
float Diameter { get; }Diameter of one item.
float Size { get; }Space one item takes: diameter plus spacing.
float Spacing { get; }Gap between items.
Vector3 ToCenter { get; }Offset from the item's origin to its centre.

Methods​

MemberWhat it is
override void DrawGizmos(Transform transform)Draws nothing in this build.

Used in​

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