Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

www.LoadImageIntoTexture not working for remote folders anymore.

Discussion in '2018.1 Beta' started by Elandir, Mar 8, 2018.

  1. Elandir

    Elandir

    Joined:
    Feb 9, 2014
    Posts:
    32
    Hi there.
    I recently moved my project to 2018.1.0b9 to give a try to Graph Shader.

    My project is built in Unity 2017.2.0f3 and WWW.LoadImageToTexture works properly using a path like this for remote machines "file://///RemoteMachineName/Folder/Subfolder/file.png". After importing in Unity 2018.1.0b9 such function is causing an exeption:

    Cannot load image: download failed
    UnityEngine.WWW:LoadImageIntoTexture(Texture2D)
    <CR_GetTexture>c__Iterator1:MoveNext() (at Assets/zzMyAssets/Scripts/DataRetrieving/ImagesDownloadManager.cs:160)
    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

    Any thought?
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,735
    If that is a file on an actual remote machine, try changing protocol to smb, should be supported by standalones.
    Using file protocol for files on remote machine is not well defined, i.e. it's not supported on OSX.