Hi guys,
I’m currently having some troubles get my project to work on IOS devices, especially loading sprites at runtime.
I know the resource folder is not supposed to work on these devices so I tried using the StreamingAsset folder to get it to work.
So far, I copied all the sprite resources in a StreamingAsset folder in my project and used the path = Application.streamingAssetsPath; to get to the designed adress.
However, I seem to have a problem loading them after and assigning them to my gameobjects:
Sprite loadedSprite = Resources.Load(path + “blabla.png”);
GameObject.GetComponent().sprite = loadedSprite;
The path is correct, I checked it using debug display but unity does not seem to find anything and returns an empty value for loadedSprite…
Any help would be highly appreciated
Thanks