Hey guys,
Debug.Log(prefabObjects[objectIndex]);
GameObject sceneObject = PrefabUtility.InstantiatePrefab(prefabObjects[objectIndex]) as GameObject;
Debug.Log(sceneObject);
In Unity4 using PrefabUtility.InstatiatePrefab or just regular Instatiate returns null when using it in a editor script.
The prefab is certainly not null, it successfully spawns it in the scene, but what PrefabUtility returns is null, why?
I’ve seen a few post without any answers, does someone know a work around and when we can except this bug to be fixed. It seems like a rather critical issue, which surprises me as I would have expected more topics on it, or am I doing something wrong?