Answer the question
In order to leave comments, you need to log in
How to instantiate a GameObject from a .prefab file in C#?
There is a .prefab file, how can I instantiate it?
For example, prefabs in Resources can be instantiated using the function:
UnityEngine.Object.Instantiate((GameObject)(Resources.Load(string.Concat("prefabs/game/civilianZombie_1"))));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question