Tilemap.SpriteArray
A read-only array containing Sprite EntityId s.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.Tilemaps
- Assembly: UnityEngine.TilemapModule
- Implements: IEnumerable<Sprite>, IEnumerable, IDisposable
public struct Tilemap.SpriteArray : IEnumerable<Sprite>, IEnumerable, IDisposable
Remarks
This can be accessed by index to return a Sprite.
Properties
Property | Description |
|---|---|
| this[] | Returns the Sprite indexed in the Tilemap.SpriteArray. |
| Length | The number of elements in the Tilemap.SpriteArray. |
Methods
Method | Description |
|---|---|
| Dispose | Frees allocated memory for the Tilemap.SpriteArray. |
| GetEnumerator | Retrieves an iterator that allows you to iterate over all elements within the Tilemap.SpriteArray. |