文档

Unity Engine

Unity Engine

GetSafeTriggerParticlesSize(ParticleSystem, ParticleSystemTriggerEventType)

Safe array size for use with ParticlePhysicsExtensions.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 ParticlePhysicsExtensions.GetTriggerParticles for the current frame. GetTriggerParticles may return fewer elements for some GameObjects though.