Tilemap.PositionArray
A read-only array containing Tilemap positions.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.Tilemaps
- Assembly: UnityEngine.TilemapModule
- Implements: IEnumerable<Vector3Int>, IEnumerable, IDisposable
public struct Tilemap.PositionArray : IEnumerable<Vector3Int>, IEnumerable, IDisposable
Properties
Property | Description |
|---|---|
| this[] | Returns the Vector3Int position indexed in the Tilemap.PositionArray. |
| Length | The number of elements in the Tilemap.PositionArray. |
Methods
Method | Description |
|---|---|
| Dispose | Frees allocated memory for the Tilemap.PositionArray. |
| GetEnumerator | Retrieves an iterator that allows you to iterate over all elements within the Tilemap.PositionArray. |