- Home /
cannot load GameObject Prefabs using Resources.Load in Android
I have gameobject prefabs in resources folder that needs to be replaced using PrefabUtility.ReplacePrefab. Its working the way I want it to when I play it on Unity, but not when I build&run on my android phone. So how do I replace those prefabs in android?
Code below:
PrefabUtility.ReplacePrefab(emptyGameObject,AssetDatabase.LoadAssetAtPath ("Assets/Resources/" + c.ToString () + ".prefab", typeof(Object)));
Your answer
Follow this Question
Related Questions
Could not load copied asset via AssetDatabase.LoadAssetAtPath 4 Answers
How to check if an object is asset in build runtime (Not in Editor) ? 4 Answers
Can anyone help with creating Prefabs for procedural meshes 1 Answer
Calendar not showing when installing from apk 0 Answers
How do I change the name of the prefab in the prefab folder with code? 0 Answers