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

PhysicsResultEnumerable<T0,T1>

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

A lazy, allocation-free view over a physics result array that yields only the elements a filter keeps.

This is a ref struct so it cannot escape to the heap, which keeps the enumeration Burst-compatible. It does not own the source array and never disposes it, so disposal stays with whoever created the results.

Constructors

Constructor Description
PhysicsResultEnumerable_2 Create a filtered view over a physics result array.

Public Methods

Method Description
GetEnumerator Get an enumerator that walks the source array and yields only the kept elements.