文档

Unity Engine

Unity Engine

Tilemap.SpriteArray

A read-only array containing Sprite EntityId s.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Methods

Method

Description

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