docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Rule Tile Inspector window reference

    Explore the properties and settings you use to change which tile Unity paints based on its surrounding tiles.

    For more information, refer to Create a rule tile.

    Property Description
    Default Sprite Sets the sprite Unity paints if the surrounding tiles don't match the rules in the Tiling Rules section.
    Default GameObject Sets the prefab Unity adds if the surrounding tiles don't match the rules in the Tiling Rules section. Drag a prefab from the Project window to this property. You can't drag an existing instance of a GameObject from the Hierarchy window.
    Default Collider Sets the shape Unity uses to check for collisions with the tile. The options are:
    • None: The tile doesn't collide with anything.
    • Sprite: Unity uses the shape from the Custom Physics Shape tab of the Sprite Editor window.
    • Grid: Unity uses the shape of the tilemap cell.
    Number of Tiling Rules Sets the number of rules in the Tiling Rules section.
    Extend Neighbor Extends the 3 × 3 rule grid when you change a rule in the grid, so you can set rules for surrounding tiles further away.
    Add (+) Adds a new rule to the Tiling Rules section.
    Remove (-) Removes a rule. Select a rule section then select this button.

    Tiling Rules

    Unity displays a tiling rule section for each rule.

    Property Description
    GameObject Sets the prefab Unity adds if the surrounding tiles match the rules in the rule grid. Drag a prefab from the Project window to this property. You can't drag an existing instance of a GameObject from the Hierarchy window.
    Collider Sets the shape Unity uses to check for collisions with the tile, if the surrounding tiles match the rules in the rule grid. The options are:
    • None: The tile doesn't collide with anything.
    • Sprite: Unity uses the shape from the Custom Physics Shape tab of the Sprite Editor window.
    • Grid: Unity uses the shape of the tilemap cell.
    Output Sets how Unity paints the sprite if the surrounding tiles match the rules in the rule grid. The options are:
    • Single: Paints the single sprite.
    • Random: Chooses randomly from a list of sprites.
    • Animation: Creates an animated sprite.
    Rule Grid Sets the rules Unity uses to check surrounding tiles. If the rules match, Unity paints the Sprite or adds the GameObject in this rule section. Otherwise Unity paints the Default Sprite or adds the Default GameObject. Click a cell to change the rule for that neighboring tile. The options are:
    • Empty: Ignores the tile at this position.
    • Green arrow: The rule passes if the tile at this position is this rule tile.
    • Red cross: The rule passes if the tile at this position isn't this rule tile.
    Sprite Sets the sprite Unity paints if the surrounding tiles match the rules in the rule grid.

    Random

    Property Description
    Noise Sets how often Unity switches to a different sprite. Lower values mean Unity is more likely to give neighboring tiles the same sprites.
    Shuffle Rotates or mirrors the sprite to try to make the Rule Grid criteria match. The options are:
    • Fixed: Doesn't rotate or mirror the sprite.
    • Rotated: Tries rotating the sprite by 90° repeatedly.
    • Mirror X: Tries mirroring the sprite across the x-axis.
    • Mirror Y: Tries mirroring the sprite across the y-axis.
    • Mirror XY: Tries mirroring the sprite across both axes.
    • Rotated Mirror: Tries rotating the sprite and mirroring it across both axes.
    Size Sets the number of sprites for Unity to choose from. Unity adds a property for each sprite in the list. To add a sprite, drag it from the Project window or select the picker (⊙).
    Sprite list Displays the sprites Unity chooses from. To add a sprite, drag it from the Project window or select the picker (⊙).

    Animation

    Property Description
    Min Speed The minimum speed Unity can select for the animation, in frames per second. Unity randomly selects a speed between Minimum Speed and Maximum Speed.
    Max Speed The maximum speed Unity can select for the animation, in frames per second.
    Size Sets the number of sprites Unity uses in the animation.
    Sprite list Displays the sprites Unity uses for the animation. Each sprite is a frame of animation, and Unity plays them in order. To add a sprite, drag it from the Project window or select the picker (⊙).

    More (⋮) menu

    Option Description
    Copy All Rules Copies all the rules in the Tiling Rules section, so you can paste them into another rule tile.
    Create Rule Tile Template Saves the rules as a template asset, so you can reuse the rules for another rule tile. For example to use with a different set of sprites. For more information, refer to RuleTileTemplateUtility.
    Paste Rules Paste the rules you copied from another rule tile.

    Additional resources

    • Create a custom rule tile
    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)