0
Not a bug

annoying warning in Unity after shader compiling in SF

synapsemassage 9 years ago updated by Freya Holmér (Developer) 9 years ago 5
Shader forge compiled shader always have these warning. This is annoying. Converting with text editors will fix it only temporarily. With the next SF compile warning will appear again.

There are inconsistent line endings in the 'Assets/_ShaderForgeTest/ShaderForge.shader' script. Some are Mac OS X (UNIX) and some are Windows.
This might lead to incorrect line numbers in stacktraces and compiler errors. Many text editors can fix this using Convert Line Endings menu commands.

Answer

Answer
Not a bug
There's not really any way to avoid that as far as I know, and it has nothing to do with SF itself I'm afraid. SF has consistent line endings in the files it generates, but it has no control over what your version control system might do with it if you work between platforms or run diffs/merges
Answer
Not a bug
There's not really any way to avoid that as far as I know, and it has nothing to do with SF itself I'm afraid. SF has consistent line endings in the files it generates, but it has no control over what your version control system might do with it if you work between platforms or run diffs/merges
I don't have any version control system running at the moment, and I'm only trying on win 10 right now.
In that case I have no idea why you would get that error in the first place, there shouldn't be any line ending discontinuity as far as I know
Ok, as always weirdness is my companion ;-)