Skip to content

ItemShape

Defines the grid footprint of an item at each rotation index for grid-based layouts.

Namespace: Octoputs.Storage
Inherits: ScriptableObject

Overview

ItemShape describes which cells an item occupies on a grid at each of four rotation indices (0/90/180/270 degrees). Grid layouts use this to determine placement and collision. Cells are defined relative to a pivot cell at (0,0) and automatically rotated at runtime. Create shapes via Create > Jungle > Octoputs > Item Shape.

Properties

Property Type Description
cells Vector2Int[] Cells occupied at rotation index 0, relative to the pivot cell (0,0).

See Also