Resources Load allows backslashes

I am using Resources.Load to load assets from subfolders. In the manual it states that “All asset names and paths in Unity use forward slashes, so using backslashes in the path will not work.”

I was accidentally using backslashes as I did not know of this issue, but what’s strange is that Unity seemed to work fine with the backslash version. Is this just because I’m on Windows, or that I’m in the editor not a build, or is Unity automatically changing them behind the scenes? Is this even an issue either way or should no one care?

I cannot say for certain but I did run into backslashes not working on Linux at some point, but I cannot remember whether that was related to Resources.

As long as you only ever want to publish a Windows executable you should be fine using slashes, but generally speaking I would just do as the manual advises because there is no cost associated with consistently using slashes while increasing portability of the code.

Thanks!