Class LDtkComponentLayerIntGridValues
Use for checking IntGrid values. The coordinates are usable for it's respective tilemaps. Accessible from IntGrid layer GameObjects.
Methods
|
Improve this Doc
View Source
GetPositionsOfValue(Int32)
Get all Tilemap coordinates of a specific IntGrid value.
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
Returns
Type |
Description |
UnityEngine.Vector3Int[] |
|
|
Improve this Doc
View Source
GetPositionsOfValueDefinition(LDtkDefinitionObjectIntGridValue)
Get all Tilemap coordinates of a specific IntGrid value.
Parameters
Returns
Type |
Description |
UnityEngine.Vector3Int[] |
|
|
Improve this Doc
View Source
GetValue(Vector3Int)
Get a IntGridValue tile at the coordinate for this layer. Returns 0 if a value at the coord doesn't exist. (empty tiles are an intgrid value of 0)
Parameters
Type |
Name |
Description |
UnityEngine.Vector3Int |
coord |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetValueDefinition(Vector3Int)
Get a IntGridValue tile at the coordinate for this layer. Returns null if a value at the coord doesn't exist.
Parameters
Type |
Name |
Description |
UnityEngine.Vector3Int |
coord |
|
Returns