Skip to main content

StackingInstructions

An abstract class in Root.Township, Alta.Inventory.

Base asset that describes how items stack in a space. It makes a StackingInstructionSetup for given bounds; the generic subclass creates the setup type for you.

Constructors​

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

Methods​

MemberWhat it is
virtual void DrawGizmos(Transform transform)Editor: draws the stacking layout. Does nothing unless a subclass overrides it.
abstract StackingInstructionSetup GetSetup(Bounds bounds, Matrix4x4 localToWorld)Creates the stacking setup for a box with these bounds and this local-to-world matrix.

Used in​

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