docs.unity.cn
    Show / Hide Table of Contents

    Struct WeightedSprite

    A Sprite with a Weight value for randomization.

    Namespace: UnityEngine.Tilemaps
    Syntax
    [Serializable]
    public struct WeightedSprite

    Fields

    Sprite

    Sprite.

    Declaration
    public Sprite Sprite
    Field Value
    Type Description
    Sprite

    Weight

    Weight of the Sprite.

    Declaration
    public int Weight
    Field Value
    Type Description
    Int32
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 22 March 2021