Version: Unity 6.0 (6000.0)
LanguageEnglish
  • C#

GridLayout.cellSwizzle

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public GridLayout.CellSwizzle cellSwizzle;

Description

Cell swizzle order that this layout applies when converting cell positions to local space.

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 CellSwizzle for all available orders.