docs.unity3d.com
    Show / Hide Table of Contents

    Random Tile

    Random Tiles are Tiles which pick a Sprite from a given list of Sprites and a target location pseudo-randomly, and then displays that Sprite. The Sprite displayed for the Tile is randomized based on its location and remains fixed for that specific location.

    Properties

    Property Function
    Number of Sprites Set the number of Sprites to randomize from here.
    Sprite * Select the Sprite the Tile can randomly place.
    Color Set the color of the Tile.
    Collider Type Select the type of Collider Shape the Tile will generate.

    Usage

    First set the size of the list of Sprites to choose from by setting the value to the Number of Sprites property in the Random Tile editor window. Then select the Sprites that the Tiles chooses from for each Sprite entry.

    Random Tile Editor

    Paint the Random Tile onto the Tilemap with the Tile Palette tools.

    Scene View with Random 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