Search Unity

Is there a way to locally cache images, videos, scriptable objecsts?

Discussion in 'Assets and Asset Store' started by Mickey_omar, May 22, 2020.

  1. Mickey_omar

    Mickey_omar

    Joined:
    Jan 7, 2017
    Posts:
    8
    Hello, I am making an offline image gallery where the user can select images, videos from their local drive. Nothing is online and nothing is shareable.

    Is there a way to not load the images every time the app opens? Like caching them or something like that?

    What I am currently doing is storing the paths in a scriptable object and serializing them as a JSON file. On Startup, it has to go through all the paths and re-load the images and videos.

    The path loads the images, videos and text files and stores them in a scriptable object to easily use them around the scenes. It would be great if these scriptable objects are preloaded with the previously loaded data when the project starts up.

    Thank you.