docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX
    on 22 March 2021