Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IPhysicsResultFilter<T>

A filter applied to each element of a physics result array during enumeration.
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Interface
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public interface IPhysicsResultFilter<T> where T : unmanaged

Remarks

Implement this on a value type so the enumeration inlines, allocates nothing, and runs inside Burst. Any arguments the filter needs are carried as fields on the implementing struct.