Enum GridData.Swizzle
The swizzle order applied to Grid cell positions. Remaps how cell coordinates are arranged across the X, Y, and Z axes. Values match GridLayout.
Namespace: Unity.Tilemaps.Experimental
Assembly: Unity.2D.Tilemap.Experimental.dll
Syntax
public enum GridData.Swizzle
Fields
| Name | Description |
|---|---|
| XYZ | Keeps the cell positions at XYZ. This is the default, with no reordering of axes. |
| XZY | Swizzles the cell positions from XYZ to XZY. The Y and Z axes are swapped. |
| YXZ | Swizzles the cell positions from XYZ to YXZ. The X and Y axes are swapped. |
| YZX | Swizzles the cell positions from XYZ to YZX. |
| ZXY | Swizzles the cell positions from XYZ to ZXY. |
| ZYX | Swizzles the cell positions from XYZ to ZYX. The X and Z axes are swapped. |