기술 자료

Unity Engine

Unity Engine

GetSafeTriggerParticlesSize(ParticleSystem, ParticleSystemTriggerEventType)

Safe array size for use with GetTriggerParticles.
읽는 시간 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.