Can you name something that you spawned with a spawner script?

Basically I have a c# code that spawns my enemy. Is there a way that I can declare it to a variable or something?

1 Answer

1

GameObject newObject = Instantiate()as GameObject;

Thank you