Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ParticlePhysicsExtensions.GetSafeCollisionEventSize

Switch to Manual
public static function GetSafeCollisionEventSize(ps: ParticleSystem): int;

Parameters

Description

Safe array size for use with ParticleSystem.GetCollisionEvents.

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