LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

PositionEnumerator

struct in UnityEngine

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.