docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct RuleMatchInput

    Data struct containing Rule Match Input

    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 RuleMatchInput : IDisposable

    Fields

    bounds

    Bounds of the neighbors

    Declaration
    public BoundsInt bounds
    Field Value
    Type Description
    BoundsInt

    enabled

    Whether this Rule is enabled and used for matching

    Declaration
    public int enabled
    Field Value
    Type Description
    int

    groupId

    Group to match with

    Declaration
    public int groupId
    Field Value
    Type Description
    int

    matchingRules

    NativeArray of Rules to match neighbors with

    Declaration
    public NativeArray<int> matchingRules
    Field Value
    Type Description
    NativeArray<int>

    neighbors

    NativeArray of neighbor positions to match with

    Declaration
    public NativeArray<int3> neighbors
    Field Value
    Type Description
    NativeArray<int3>

    tileId

    EntityId of Tile to match with

    Declaration
    public EntityId tileId
    Field Value
    Type Description
    EntityId

    transformMatch

    Transform rules to match neighbors with

    Declaration
    public RuleMatchSerializable.TransformMatch transformMatch
    Field Value
    Type Description
    RuleMatchSerializable.TransformMatch

    Methods

    Dispose()

    Disposes memory allocations used by RuleMatchInput

    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)