Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


PhysicsResultEnumerable<T, TFilter>.Enumerator

Walks a physics result array and yields only the elements the filter keeps.
Read time 1 minuteLast updated 11 days ago

Definition

  • Type: Struct
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public ref struct PhysicsResultEnumerable<T, TFilter>.Enumerator

Remarks

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

Constructors

Constructor

Description

Enumerator(Unity.Collections.NativeArray{`0},`1)Create an enumerator over a result array and its filter.

Properties

Property

Description

CurrentGet the element at the current position of the enumerator.

Methods

Method

Description

MoveNextAdvance to the next element the filter keeps.