Rule Override Tile | 2D Tilemap Extras | 1.5.0-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Rule Override Tile

    *Contributions by: johnsoncodehk, Autofire *

    Rule Override Tiles are Tiles which can override a subset of Rules for a given Rule Tile to provide specialised behaviour while keeping most of the Rules originally set in the Rule Tile.

    Properties

    Property Function
    Tile The Rule Tile to override.
    Override Self Enable this so that this Tile only accepts instances of itself when matching Rules.
    Advanced Enable Advanced Mode. Enable this if you want to specify which Rules to override.

    Usage

    Set up the Rule Override Tile with the Rule Tile to override. The Rule Override Tile Editor will pick up the items to override and show them.

    In normal mode, the Editor will show all the Sprites that are used in the Rule Tile on the left. Place the Sprites to override the ones on the right. When the Rule Tile has a match outputting the Sprite on the left, it will instead output the Sprite specified on the right.

    Rule Override Tile Editor

    In advanced mode, the Editor will show all the Rules that are used in the Rule Tile on the left. To override a Rule, check the Enabled box and override the output by specifing the desired output instead.

    Rule Override Tile Editor in Advanced mode

    Paint the Rule Override Tile using the Tile Palette tools.

    Scene View with Rule Override Tile

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023