Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetSafeTriggerParticlesSize(ParticleSystem, ParticleSystemTriggerEventType)

Safe array size for use with GetTriggerParticles.
Read time 1 minuteLast updated 12 days 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 GetTriggerParticles for the current frame. GetTriggerParticles may return fewer elements for some GameObjects though.