Documentation

Unity Engine

Download Unity

Unity Engine

IPhysicsResultFilter<T>

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

Definition

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.