SphereInBoxStackingInstruction
A class in Root.Township, Alta.Inventory.
Stacking instructions asset that packs spheres in a box grid inside a dock. Created from the Township/Stacking asset menu.
- Listed in Items, inventory and logic
- Inherits or implements
StackingInstructions<SphereInBoxStackingInstructionSetup> - Derived types
SphereInBoxStackingInstructionSetup - Attributes
CreateAssetMenu
Constructors
| Member | What it is |
|---|---|
SphereInBoxStackingInstruction() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
2 private and internal fields
Properties
| Member | What it is |
|---|---|
float Diameter { get; } | Diameter of one sphere. |
float Size { get; } | Space one sphere takes: diameter plus spacing. |
float Spacing { get; } | Gap between spheres. |
Methods
| Member | What it is |
|---|---|
override void DrawGizmos(Transform transform) | Editor: draws the sphere and its spacing at the transform. |
Used in
Members of other types that take, return or hold a SphereInBoxStackingInstruction: