Resource.Load not working in Standalone build

hi
i made a game with a database (localhost) ( the code of the databese is in BaseDati1-2 images)
I implemented the “screenshot” feature adn it works(screenshot take img) , i change them to grayscale img or B/W images (imageprocessing img) after i load them by the path ( screen load image) everything works in unity , after i made a build with no errors the load of the image thanks to Resources.Load works only if the image was in the resources asset before the build . The Database is working and the table are modified while playing the build .
Thanks and sorry for the bad english :slight_smile:





This is by design. Resources contains a list of “known to be part of the project files that were built at build time.”

If you want to load other images off the disk, just use standard C# file operation calls to get the bytes[ ] array, then use this Unity API to make a Texture2D out of it:

https://docs.unity3d.com/ScriptReference/Texture2D.LoadImage.html