Tilemap.TileArray
A read-only array containing Tile EntityId s.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.Tilemaps
- Assembly: UnityEngine.TilemapModule
- Implements: IEnumerable<TileBase>, IEnumerable, IDisposable
public struct Tilemap.TileArray : IEnumerable<TileBase>, IEnumerable, IDisposable
Remarks
This can be accessed by index to return a TileBase.
Constructors
Constructor | Description |
|---|---|
| TileArray(System.Int32,Unity.Collections.Allocator) | Creates a new array and allocates enough memory to fit the provided number of elements. |
| TileArray(System.Int32,Unity.Collections.MemoryLabel) | Creates a new array and allocates enough memory to fit the provided number of elements, using the specified memory label. |
Properties
Property | Description |
|---|---|
| this[] | Returns the TileBase indexed in the Tilemap.TileArray. |
| Length | The number of elements in the Tilemap.TileArray. |
Methods
Method | Description |
|---|---|
| Dispose | Frees allocated memory for the Tilemap.TileArray. |
| GetEnumerator | Retrieves an iterator that allows you to iterate over all elements within the Tilemap.TileArray. |