Struct RuleMatchInput
Data struct containing Rule Match Input
Implements
Inherited Members
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()