- Home /
Death Screen on Current Scene,
So im trying to make a death screen which pops up a try again and quit button while the current scene plays on and like death effects still play on backround. I!m very new to Unity.
Comment
Best Answer
Answer by Beylan0 · Jul 04, 2020 at 11:32 AM
If your death effects are particles, you could go into their settings in the inspector and turn off the loop setting. Or in your script where the player will be dead, you could add a reference to the death particle and destroy it. If you're instantiating the particle, simply assign it to a gameobject:
GameObject deathEffect;
void onPlayerDie()
{
Destroy(deathEffect);
}
//void where you instantiate your effect
void yourHealthVoid()
{
deathEffect = Instantiate(deathEffectObj, Vector3.zero, Quaternion.identity);
}