docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RuleMatchOutput

    Data struct containing Rule Match Output

    Implements
    IDisposable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Tilemaps.Experimental
    Assembly: Unity.2D.Tilemap.Experimental.dll
    Syntax
    [BurstCompile]
    public struct RuleMatchOutput : IDisposable

    Fields

    colliderType

    Collider Shape output for Tile

    Declaration
    public Tile.ColliderType colliderType
    Field Value
    Type Description
    Tile.ColliderType

    gameObjects

    NativeArray of output GameObject EntityIds if Rule matches

    Declaration
    public NativeArray<EntityId> gameObjects
    Field Value
    Type Description
    NativeArray<EntityId>

    maxAnimationSpeed

    Maximum range for Animation Speed

    Declaration
    public float maxAnimationSpeed
    Field Value
    Type Description
    float

    minAnimationSpeed

    Minimum range for Animation Speed

    Declaration
    public float minAnimationSpeed
    Field Value
    Type Description
    float

    perlinScale

    Perlin Scale for randomizing output

    Declaration
    public float perlinScale
    Field Value
    Type Description
    float

    spriteOutput

    Type of Sprite output by Tile

    Declaration
    public RuleMatchSerializable.OutputSprite spriteOutput
    Field Value
    Type Description
    RuleMatchSerializable.OutputSprite

    sprites

    NativeArray of output Sprite EntityIds if Rule matches

    Declaration
    public NativeArray<EntityId> sprites
    Field Value
    Type Description
    NativeArray<EntityId>

    Methods

    Dispose()

    Disposes memory allocations used by RuleMatchOutput

    Declaration
    public void Dispose()

    Implements

    IDisposable
    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)