Documentation

Unity Engine

Unity Engine

GetSafeTriggerParticlesSize(ParticleSystem, ParticleSystemTriggerEventType)

Safe array size for use with ParticlePhysicsExtensions.GetTriggerParticles.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule
public static int GetSafeTriggerParticlesSize(this ParticleSystem ps, ParticleSystemTriggerEventType type)

Parameters

Particle system.

Type of trigger to return size for.

Returns

Type

Description

intNumber of particles with this trigger event type.

Remarks

This is guaranteed to be large enough to use with ParticlePhysicsExtensions.GetTriggerParticles for the current frame. GetTriggerParticles may return fewer elements for some GameObjects though.