How do I rotate a prefab on instantiate?

I am trying to spawn a 2D sprite facing the camera but I can’t figure out how to change the script to get it to spawn at -90X so it faces the camera.

public void SpawnUnit1()
    {
        ColorBlock cb = buttonQ.colors;
       
        if (resourceManager.money >= 75f) {
            cb.pressedColor = Color.blue;
           
            Instantiate (unit1Prefab, friendlySpawn.position, friendlySpawn.-90, 0, 0f);
            resourceManager.money -= 75f;
        } else {
            cb.pressedColor = Color.red;
        }
       
        buttonQ.colors = cb;
    }

Am I doing it right but in the wrong way or do I look like an idiot and it is all completely wrong.
Please help. There will be cookies.

Try this

Instantiate(unit1Prefab, friendlySpawn.position, Quaternion.Euler(-90f, 0f ,0f));

This will rotate it -90f on the x-axis. You can use different values for the 3 parameters to obtain different rotations.

That made it spawn as I needed it, thank you:)
Although now my sprite is just falling instead of moving how it was?

That’s a different problem entirely, has it got a RigidBody2D on it with gravity enabled? If so, and you don’t want it to fall you can turn off gravity in the inspector.

If you need further help with this new problem, you may want to start a new thread with a title that better reflects the issue.