Search Unity

Bug Resources.Load with "/" paths fails

Discussion in 'Linux' started by Miscellaneous, Oct 26, 2015.

  1. Miscellaneous

    Miscellaneous

    Joined:
    Sep 24, 2013
    Posts:
    53
    Unity-Editor 5.1 + ArchLinux (project created on OSX, build on Linux)

    In some cases, file-paths including "/" isn't acting like on other platforms (iOS, OSX)

    Resources.Load( "path/prefab" ) doesn't work...

    But, moving the prefab to the root of Resources

    Resources.Load( "prefab" ) and it works...
     
    Last edited: Oct 27, 2015
  2. Chaoseiro

    Chaoseiro

    Joined:
    Aug 28, 2013
    Posts:
    40
    Didn't test this here, but have you tried
    Code (csharp):
    1. Resources.Load( "path\\prefab" );
    ?
     
  3. Miscellaneous

    Miscellaneous

    Joined:
    Sep 24, 2013
    Posts:
    53
    Chaoseiro, sorry, but I re-installed ArchLinux (without Session X). I'm now using the OSX-editor to create a headless Linux build, I need the latest version of Unet and since the version shipped with Linux-Editor 5.1 doesn't play nice with 5.2, I didn't have much options.

    Out of curiosity I do recalling trying the following (not working as expected):

    Resources.Load( "/path/prefab" )
    Resources.Load( "./path/prefab" )
     
  4. Nevey

    Nevey

    Joined:
    Nov 23, 2012
    Posts:
    6
    Ran into this issue as well, can't find a handy workaround.

    Can this issue be fixed somehow?

    I'm really looking forward to using Unity3D on my Ubuntu machine!!

    Cheers