Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

Enumerator

struct in Unity.U2D.Physics

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Walks a physics result array and yields only the elements the filter keeps.

This is a value-type enumerator so a foreach over the filtered view allocates nothing.

Properties

Property Description
Current Get the element at the current position of the enumerator.

Constructors

Constructor Description
PhysicsResultEnumerable_2.Enumerator Create an enumerator over a result array and its filter.

Public Methods

Method Description
MoveNext Advance to the next element the filter keeps.