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!