Legacy Documentation: Version 2017.2 (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

Description

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

Properties

CurrentCurrent position of the enumerator.

Public Methods

GetEnumeratorReturns this as an iterator that allows you to iterate over all positions within the BoundsInt.
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: