OnParticleTrigger() is not being called when particles collide with collider?
The OnParticleTrigger() callback is never called when the particles collide with the selected collider. If I put the script on the particle system, it seems like the method is called every single frame. If I put it on the collider object, it seems like it is never called. How do I use the Trigger Module in order to print anything to the console every time a particle hits the collider?
public class go : MonoBehaviour {
void OnParticleTrigger(){
Debug.Log ("WORK OR ELSE");
}
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}
Answer by aureliomv · Apr 03, 2018 at 01:27 AM
Possible duplicate: https://answers.unity.com/questions/1316716/onparticletrigger-runs-every-frame-1.html
Your answer
Follow this Question
Related Questions
Can the new ParticleSystem Trigger Module access the particle's collision collider? 0 Answers
No works vfx tests 0 Answers
Missing Paths in Animation window only with specific child selected? 1 Answer
how to make an enemy flash when clicked on? 0 Answers
How could I reach my button through a particle system? 0 Answers