Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

ParticleSystem.safeCollisionEventSize

Switch to Manual
var safeCollisionEventSize: int;
int safeCollisionEventSize;
safeCollisionEventSize as int

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.