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

Particle icon appearing on screen

Discussion in 'Scripting' started by HTwist, Sep 2, 2014.

  1. HTwist

    HTwist

    Joined:
    Aug 22, 2014
    Posts:
    2
    After the animation of my particle, a white icon appears (looks like shurikens) where the particle system was instantiated. Can someone explain to me its meaning and how to remove it? thanks!

    particle.png

    Here's how I instantiate the particle :

    Code (JavaScript):
    1. var deathParticle:GameObject;
    2. function Kill() {
    3.     this.renderer.enabled = false;
    4.     this.Destroy(this.GetComponent.<BoxCollider>());
    5.     var particle = this.Instantiate(deathParticle, this.transform.position, Quaternion.identity);
    6. }
     
  2. hodx

    hodx

    Joined:
    May 11, 2013
    Posts:
    16
    disable the particle renderer...see if that helps
     
    HTwist likes this.
  3. HTwist

    HTwist

    Joined:
    Aug 22, 2014
    Posts:
    2
    Disabling the particle renderer doesn't change it. But destroying the object remove the particle including the mark.
    I ended up doing this :
    Code (JavaScript):
    1. function Kill() {
    2.     this.renderer.enabled = false;
    3.     this.Destroy(this.GetComponent.<BoxCollider>());
    4.     var particle:GameObject = this.Instantiate(deathParticle, this.transform.position, Quaternion.identity);
    5.     yield WaitForSeconds(1);
    6.     Destroy(particle);
    7. }
     
  4. hodx

    hodx

    Joined:
    May 11, 2013
    Posts:
    16
    This is almost the same script I did in C#...for a player...instead of Instantiate..I disabled the particles and the sprite instead of destroying them
     
  5. Mixtrate

    Mixtrate

    Joined:
    Jul 24, 2014
    Posts:
    3
    Are you sure your looking at your game view and not scene view?
    I think the shuriken shows up in the scene view to tell you that a particle system exists at that current location. However in game view it goes away.

    Edit: I think you can also disable the gizmo for it.
     
    MonsterPek likes this.