기술 자료

Unity Engine

Unity Engine

Tilemap.TileArray

A read-only array containing Tile EntityId s.
읽는 시간 1분최근 업데이트: 한 달 전

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.