Spawned an object but it faces the wrong way. What's the fix?

public void Spawn()
{
GameObject monster=(GameObject)Instantiate(spawnPrefab, transform.position, Quaternion.identity);
monster.name=“Monster”;
}

That’s my code. Like I said, it’s facing the wrong way. I’m going to be spawning this prefab object several times throughout my game. Is there a way to set it so that it automatically rotates itself to face my first person camera when it spawns? Answers in CSharp please, it’s the language I need to use for this project. I’ve had a look at this but to be honest with you I don’t really understand it. I think it’s along the right lines though. Thank you!

Try this

    public void Spawn()
    {
         GameObject monster=(GameObject)Instantiate(spawnPrefab, transform.position, Quaternion.identity);
         monster.transform.LookAt( Camera.main.transform );
         monster.name="Monster";
    }

After you spawn it, you can call Transform.LookAt to make it rotate towards the camera.