our clients often deliver hughe amounts of photos that they´d like to have implemented in their presentations.
The problem is that handling each photo as a Unity-Texture soon crashes the app due to memory amount.
So I am looking for a kind of a “Streaming - Overlay” whatever solution that smoothly displays images from the streaming assets folder or even better from a server without pumping up the amount of memory.
Thanks, but this class extracts the imagedata into memory.
Maybe some aditional explanations:
I want:
too keep the mainscene loaded/in memory
additionally fill a (scrollable) thumbnail preview of let´s say 100 images (with 1920x1080px original resolution) without killing the app due to memory exceeding
click a thumbnail and see its original in fullscreen without killing the app due to memory exceeding
defenitively no manual resizing of the images to PowerOfTwo
Close the galery and imediately go on with the mainscene without the need of reloading it
I could imagine something like an html overlay or similar…
If you want to present something from Unity gfx side then it should to be in the same memory. If you have pre-generated thumbnails which you can cache and load and free based visibility there should be no memory issues. If you want original size images just to be scaled down and all in same view I wouldn’t use Unity at all but invoke WebView on top of Unity view (which still could have memory problems).
BTW this should be in the iOS section to get better audience.