ドキュメント

Unity Engine

Unity Engine

GetSafeTriggerParticlesSize(ParticleSystem, ParticleSystemTriggerEventType)

Safe array size for use with GetTriggerParticles.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.