I cannot instantiate my particles for some reason

I’ve been looking for a solution for a while now and I can’t understand why I get an error on this line of code:

public void gameOver()
{
    ParticleSystem.Instantiate(original: DeathParticles, position: GameObject.FindGameObjectWithTag("Player").transform.position);
    gameOverScene.SetActive(true);
}

I get the following error:
No overload for method 'Instantiate' takes 2 arguments

I just don’t understand why

I mean look at the docs: Unity - Scripting API: Object.Instantiate

There’s no overload that takes an object and a position only. You probably mean to use the overload that takes the original, position and rotation.

1 Like

Sincerely, thank you.

1 Like