cellSwizzle
Cell swizzle order that this layout applies when converting cell positions to local space.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.GridModule
public GridLayout.CellSwizzle cellSwizzle { get; }
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.