Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.1.0b2
Issue ID
913831
Regression
No
Automatic shader upgrade creates inconsistencies in the line endings
Repro steps:
1. Create a new project
2. Create a new "Shader" -> "Standart Surface Shader"
3. Open the new Shader file and show the line endings
4. Paste in the provided Shader code and convert the line endings to Windows (CR LF)
5. Save the Shader file and enter the Unity Editor
6. Notice the "inconsistent line endings" error
7. Enter back to the Shader file and notice that it needs to be reloaded
8. Reload the Shader file and notice that at the Top of the file a new line was automatically added that has different line ending from the rest of the code
Expected result: The automatically added line endings should be like the rest (CR LF in this case)
Actual result: The automatically added line endings are different (LF) than the rest (CR LF)
Reproduced with: 5.6.0f3, 5.6.1p1, 2017.1.0b7, 2017.2.0a1
Did not reproduce on: 5.5.3p4(No code to automatically update)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment