Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Tilemap.TileArray

A read-only array containing Tile EntityId s.
Read time 1 minuteLast updated 4 days ago

Definition

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.
LengthThe number of elements in the Tilemap.TileArray.

Methods

Method

Description

DisposeFrees allocated memory for the Tilemap.TileArray.
GetEnumeratorRetrieves an iterator that allows you to iterate over all elements within the Tilemap.TileArray.