Search Unity

Sprite from local image

Discussion in '2D' started by ledconandre, Dec 11, 2017.

  1. ledconandre

    ledconandre

    Joined:
    Nov 13, 2017
    Posts:
    1
    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!
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
  3. CESIL

    CESIL

    Joined:
    Jun 25, 2019
    Posts:
    5
    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.