Contents

particleIndices

The indices of particles that collided with the collider.

Declaration

var particleIndices: Span<UInt32> { get }

Discussion

The lifetime of this span is tied to the owning event, and thus cannot escape it. This data is only available during the subscription callback in which the owning event is provided. If you store the event and attempt to access this data after the subscription callback, then you will get an empty span instead.

See Also

Accessing affected particles