Quantcast
Channel: Questions in topic: "loadassetatpath"
Viewing all articles
Browse latest Browse all 62

cannot load GameObject Prefabs using Resources.Load in Android

$
0
0
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)));`

Viewing all articles
Browse latest Browse all 62

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>