I know you can initialize a GameObject with a prefab by dragging the prefab onto the script’s prefab variable. But what if I have a ton of prefab variables I want to initialize automatically with un-instantiated prefabs from the project’s prefab folder instead of having to drag each prefab onto it’s respective variable? Kind of like a GameObject.Find function that doesn’t require the object to be instantiated into the scene. Is this possible?
GameObject go = (GameObject)Instantiate(Resources.Load(prefab));
That does the trick. Thanks!