Version: 2022.2

PositionEnumerator

struct in UnityEngine

切换到手册

描述

用于遍历 RectInt 中的所有位置的迭代器。

变量

Current该枚举器的当前位置。

公共函数

GetEnumerator返回可遍历 RectInt 中所有位置的迭代器。
MoveNext将该枚举器移至下一个位置。
Reset将该枚举器重置为其开始状态。