docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)