ドキュメント

Unity Engine

Unity Engine

Tilemap.TileArray

A read-only array containing Tile EntityId s.
読み終わるまでの所要時間 1 分最終更新 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.