GetSafeCollisionEventSize(ParticleSystem)
Safe array size for use with GetCollisionEvents.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.ParticleSystemModule
public static int GetSafeCollisionEventSize(this ParticleSystem ps)
Parameters
Returns
Type | Description |
|---|---|
| int |
Remarks
This is guaranteed to be large enough to use with GetCollisionEvents for the current frame. GetCollisionEvents may return fewer elements for some GameObjects though.