cellSwizzle
Cell swizzle order that the grid applies when converting cell positions to local space.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.GridModule
public GridLayout.CellSwizzle cellSwizzle { get; set; }
Remarks
Swizzling reorders the cell axes. The default GridLayout.CellSwizzle.XYZ keeps cell X, Y, and Z mapped to local X, Y, and Z. GridLayout.CellSwizzle.XZY swaps the Y and Z axes, which is useful for placing a 2D grid on the XZ ground plane of a 3D scene. See GridLayout.CellSwizzle for all available orders.