Thank you for submitting your inquiry.
You can track the status of your inquiry here.
You may want to save your case's ticket: 533268_jgvrk2lbu1qm398e


    (Closed) Resources.LoadAll does not accept Path.
     
     
     
    5
    1) What happened
    Resources.LoadAll does not accept Path.DirectorySeparatorChar characters in the path.

    2) How can we reproduce it using the example you attached
    See the source code file at Editor\EditorInitialization.cs

    Resources.LoadAll only accepts Path.AltDirectorySeparatorChar characters in the path. using Path.DirectorySeparatorChar fails.

    if you try to construct a path using Path.Combine the Combine method uses Path.DirectorySeparatorChar to join paths.

    Also a user could specify a path to a resource to load and they could type Path.DirectorySeparatorChar or Path.AltDirectorySeparatorChar.

    This behavior is not in line with .net (and probably mono) behaviors.
    Resources.LoadAll should treat Path.DirectorySeparatorChar & Path.AltDirectorySeparatorChar slashes the same.

    Also the documentation does not mention this about using only Path.AltDirectorySeparatorChar characters.

    NOTE: I did not test Resources.Load but I am assuming it behaves the same.
     
       
      To follow up on this case, send email to bugs@unity3d.com mentioning 'Case 533268' in the subject.
      Your Cases:
      Case Title Status Date Opened
      858852 Logging checkbox grid does not maintain alignment in the inspector Closed 12/7/2016 1:00 PM
      857993 random editor crash Open 12/4/2016 7:40 PM
      856297 Randome crash with "Fatal error in gc" message box Closed 11/30/2016 11:40 AM
      856181 random crash opening project Closed 11/30/2016 1:50 AM
      856180 random crash Closed 11/30/2016 1:50 AM
      816203 random crash debuggin with unityvs Closed 7/20/2016 11:08 PM
      814322 attempted to read screen pixels hard crashed editor Open 7/15/2016 10:37 AM
      808845 VS tools 2015 for unity v2.2 unity 5.3.5 not working hard crashed the editor Open 6/25/2016 7:48 AM
      788358 random hard crash after copying a symbolic linked (junction) folder Open 4/13/2016 10:58 PM
      771170 random crash debugging Closed 2/16/2016 11:57 AM
      768613 random hard crash Open 2/7/2016 9:27 PM
      768436 Confirmed 3 BUGS in GUI.TextArea & GUILayout.TextField method overloads Closed 2/7/2016 1:35 AM
      768416 random hard crash Open 2/6/2016 10:50 PM
      768307 random crash debuggin with vs.net and unityvs Closed 2/6/2016 8:48 AM
      768218 random crash while debugging in vs.net & unityvs Closed 2/5/2016 10:58 PM
      762865 random crash when debugging with visual studio tools for unity in VS2015 community Closed 1/19/2016 5:09 AM
      760466 random crash while debugging in visual studio 2015 Closed 1/10/2016 11:18 AM
      757942 random editor hard crash when debugging Closed 12/29/2015 9:37 PM
      749248 TextArea/GuiStyle bug Open 12/1/2015 9:37 AM
      744697 random crash during debugging via vs.net 2015 Open 11/14/2015 10:20 PM
      743307 random crash while debuggin in vs.net 2015 comunity Open 11/9/2015 11:39 PM
      743035 random hard crash while debugging Open 11/8/2015 9:39 PM
      738990 opening asset store & new project window crashes unity editor Open 10/24/2015 1:19 AM
      738732 Editor does not detect script changes if file/folder browser window is open Open 10/23/2015 10:28 AM
      737478 incorrect documentation/outdated Closed 10/19/2015 2:08 PM
      737322 unity services window causes unity to crash Open 10/18/2015 8:28 PM
      737319 random crash Open 10/18/2015 8:19 PM
      736873 random crash opening unity project Open 10/16/2015 9:09 PM
      733584 random crash Open 10/5/2015 11:39 AM
      733448 Unity seemed to be hanged after being open for a number of hours Open 10/4/2015 7:19 PM
      732707 random crash while quitting unity Open 10/1/2015 6:49 PM
      732556 NullReferenceException in UnityEditor.Connect.UnityConnectServiceCollection.InstanceStateChanged Open 10/1/2015 9:59 AM
      710179 random crash Closed 7/7/2015 10:09 AM
      688963 Unity5 hard crashes when changing window Layout Open 4/13/2015 7:29 AM
      682583 Random Crash while debugging with UnityVS Closed 3/21/2015 5:19 AM
      673244 random crash while debugging using microsoft visual studio tools for unity (UnityVS Closed 2/18/2015 12:59 PM
      673121 Console thorws InvalidOperationException: Operation is not valid due to the current state of the object inside OnGui logic. Open 2/17/2015 11:49 PM
      673113 random crash while debugging with visual studio 2013 and Microsoft Visual Studio Tools for Unity (UnityVS Closed 2/17/2015 10:59 PM
      670672 related bug reports are here Open 2/9/2015 4:59 AM
      670071 I've been getting this reoccouring bug seemingly at random Open 2/6/2015 1:39 AM
      667641 user submitted bug Open 1/28/2015 3:08 PM
      666171 user submitted bug Open 1/23/2015 11:00 PM
      660724 this simple script seems to crash the editor every time Closed 1/4/2015 9:19 AM
      659322 ContentType has no documentation for the enums http://docs. Open 12/27/2014 2:10 PM
      659317 http://docs.unity3d.com/ScriptReference/UI.Slider-direction. Open 12/27/2014 1:29 PM
      659099 UI.Button documentation for vaibles is not sorted Open 12/26/2014 2:09 AM
      659098 Documentation page http://docs.unity3d.com/ScriptReference/ Open 12/26/2014 2:09 AM
      655505 I use AeroFS on my tablet and desktop to sync files Open 12/12/2014 1:49 PM
      653868 random crash while debugging with UnityVS Open 12/6/2014 1:29 PM
      653172 Debgging with UnityVS random crash Open 12/3/2014 11:59 PM
      648501 Was debugging with UnityVS and a random crashed occoured Open 11/16/2014 11:29 PM
      646561 Accessing Camera.current inside of OnGui causes subsequent Open 11/9/2014 4:49 PM
      617013 This is a video follow up to a previous bug I reported Closed 7/1/2014 1:09 PM
      617007 I keep getting failed hr errors in the unity console Closed 7/1/2014 12:28 PM
      596920 http://docs.unity3d.com/Documentation/ScriptReference/Undo. Closed 3/15/2014 4:59 AM
      579237 Seems to be inconsistant behavior between the GuiLayout. Open 12/3/2013 10:53 PM
      574507 Can't open my unity project. Unity crashes when it tries to Open 11/9/2013 8:14 PM
      574506 Seems like since windows 8.1 unity has problems opening some Open 11/9/2013 8:14 PM
      535231 I have a very perplexing problem. Last night before going to Closed 3/30/2013 11:23 PM
      534695 When a button contains a image and text the layout logic Closed 3/27/2013 7:04 AM
      533268 Resources.LoadAll does not accept Path. Closed 3/19/2013 1:45 AM
      525005 NOTE: This is a bare bones example from a previous bug I Closed 2/17/2013 11:49 PM
      525002 Upon first package import Unity does not appear to recognize Closed 2/17/2013 11:39 PM
      523612 The documentation for Cursor.SetCursor reads "Change the Open 2/13/2013 10:19 AM
      523586 Documentation for Undo.IncrementCurrentEventIndex is not Open 2/13/2013 8:49 AM
      522921 Found a bug or at least undesirable behavior that hard Open 2/10/2013 11:23 PM
      505426 A$ Submission 20203: CBX.GridMapping *BETA* Closed 12/9/2012 12:22 PM
      503611 I refactored some code in VS2012 and renamed a .cs code file Closed 12/1/2012 11:54 PM
      500475 Unity editor crashed with some kind of graphics error when Open 11/18/2012 10:35 PM
      494398 Ramdom crash Open 10/17/2012 2:16 PM
      472812 A$ Submission 7747: Blue White Measurement Textures Closed 6/25/2012 1:46 PM
      470555 A$ Submission 7641: Zelda Wipe Closed 6/15/2012 12:47 PM
      466916 Unity crashes and quits instantly whe running the editor Closed 5/27/2012 7:41 AM
      466447 I rearranged my scripts into different folders within vs.net Open 5/25/2012 12:12 AM