Hi there,
Here is the thing : I want to load Assets in my scene A, then go to my scene B and use the loaded assets there. Looks simple!
Scene A:
WWW request = WWW.LoadFromCacheOrDownload(url, 0);
while(!request.isDone)
{
Debug.Log(request.progress);
yield return null;
}
if (request.error == null)
{
ABundle = request.assetBundle;
var myAsset = ABundle.LoadAsset("Questions");
Debug.Log(myAsset.name);
}
Here the outputs shows > Questions
Which is great. Then in my scene B :
var prefabQuestions = Resources.Load("Questions");
GameObject go = (GameObject) Instantiate(prefabQuestions);
I have an error: it says prefabQuestions is null . I guess the path is wrong, but I can’t find the path to the prefab I created in Scene A, what should I do ?