Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

onparticlecollision!!!

Discussion in 'Scripting' started by tawdry, Feb 26, 2015.

  1. tawdry

    tawdry

    Joined:
    Sep 3, 2014
    Posts:
    1,356
    Hi guys
    Thought this was gonna be a easy one but as usual nope!

    So i have a fireball particle effect from the excellent elementals asset. I have attached a script to the script that deals with the firing of the particle that didn't work so i attached the script to everything a empty; the mesh of the object been hit ,the particle itself, attached to the collider been hit changed code to collider rigidbody etc but nothing doing. The world collider msg is enabled . Tried to attach a collider to the fireball but it just stayed where the fireball was fired from ie on the object that fired it in this case first person controller.

    Code (CSharp):
    1. void OnParticleCollision(GameObject other){
    2.         Debug.Break ();}