Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

ParticleSystem.CollisionModule.enableInteriorCollisions

Switch to Manual
public bool enableInteriorCollisions;

Description

Allow particles to collide when inside colliders.

This can be particularly useful if you are moving colliders around in script, and using particles for pickups, in order to avoid missing any collision events. However, it may be necessary to disable it in other cases, where you could find particles getting trapped inside colliders.