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
- Error “Shader error in 'YSCloudCover': call to 'tex3D' is ambiguous at Assets/YSCloudCoverText.shader(606) (on d3d11)“ is present when compiling tex3D shader with DXC
- Placeholder asset is not loaded with Advertisement Legacy sample when using the latest version of the package
- Addressables content build fails but the Player build is successful when building a development build
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
Add comment