Load an image from a file at runtime

Created:

Updated:

Get it Here: https://ko-fi.com/s/30bb7aa9cb

To use;

  1. Drag the SpriteBar prefab into any scene
  2. Expand it’s children untill you find the “Content” object
  3. Note the exposed string variable on the attached script
  4. put some images in a matching folder located inside your Application.persistentDataPath
  5. Launch the game and you should see buttons matching the images. Clicking them should create a sprite of the image.

The scripts contain comments explaining how they work. It should be relatively easy to repurpose this for your usecase. But if you want a particular tutorial covered leave a comment.