Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

PositionEnumerator

struct in UnityEngine

/

Implemented in:UnityEngine.CoreModule

Description

An iterator that allows you to iterate over all positions within the RectInt.

Properties

CurrentCurrent position of the enumerator.

Public Methods

GetEnumeratorReturns this as an iterator that allows you to iterate over all positions within the RectInt.
MoveNextMoves the enumerator to the next position.
ResetResets this enumerator to its starting state.

Did you find this page useful? Please give it a rating: