I am calling Object.Instantiate on iphone with www load asset bundle.
When I call stripping, it doesn’t load the file with some missing ID error.
So I included the model and texture, and the problem is gone… However I include another model and texture it doesn’t work anymore, so Do I have to have the exact same model to be able to instantiate the object?
That would have no use on loading assets in runtime if I had to store the exact model in project anyways…
Selected dependencies had Prefab, Material, MeshFilter, MeshRenderer, Animation and Texture2D, I declared all these variables…
Now it actually doesn’t crash at 0%, it loads the file to 100%, but after that, it gives me an error:
“Could not produce class with ID 43”, what’s that component anybody know?
I still could not make it work,
I put this declaration at the top of a script atatched to a prefab in the bundle assets package made by “BuildPipeline.BuildAssetBundle”.
but still failed with “Could not produce class with ID 137” when “Instantiate(www.assetBundle.mainAsset);” is called.