Can the FireComplex particle be activated on trigger only?


I am using the FireComplex particle to generate an explosion (a bomb) when the user presses spacebar. The fire is playing on awake which I don’t want and it doesn’t seem to include an option to disable it.

Can this be coded to only activate the fire particle when I press space? I have tried the following:

if(Input.GetKeyUp(KeyCode.Space)) {
            BombExplosion ();

    public void BombExplosion () {

        //Create the Bombs Explosion Particle Effect.
        Instantiate (Fire, this.gameObject.transform.position, Quaternion.identity);  
        Fire.Emit(5); //Burn for 5 seconds

Unity seems to be ignoring the Fire.Emit function.

Read More Here, go to stackoverflow Author of this News
Author: Ninja2k

Leave a Reply

Your email address will not be published. Required fields are marked *