Hello, I am searching for a way how to load local images from a folder as sprites in unity. The user should be able to create other images by himself and put them in that folder and they will load automatically at the next startup. The new images will have the same name as the old ones and should overwrite the olde ones during copying. Thanks a lot!
You do this with Sprite.Create (having first loaded the files as textures using Texture2D.LoadImage, or in the latest Unity, ImageConversion.LoadImage).
I want to do the same thing for Windows users via the StreamingAssets folder. There is a great example in the documentation for the video player using Application.streamingAssetsPath and it works great. But for some reason, I can't figure out how to get the image to work. I want it to be a raw image, not a sprite. Any idea how to do that without trying to use the obsolete www? I have not had success with UnityWebRequest yet, even though I'm following the Scripting API.