Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4
2019.4
2020.2
2020.2.2f1
2021.1
2021.2
Issue ID
1308927
Regression
No
Inspector displaying wrong characters when using ANSI encoding and non latin characters in a Shader property
How to reproduce:
1. Open the attached project (case_1308927_Shader_Characters)
2. Open OnlyColor.shader with Visual Studio
3. Delete an empty line or add a comment to recompile the shader
4. Click on OnlyColor.shader to see the information in the Inspector
5. Compare the name of the _Color property in the shader file and in the inspector
Expected result: The names in the shader file and in the inspector match
Actual result: Inspector is displaying incorrect characters
Reproducible with: 2018.4.30f1, 2019.4.18f1, 2020.2.2f1, 2021.1.0b2, 2021.2.0a3
Workaround: Use a different encoding for the shader file (e.x. Unicode UTF-8)
Notes:
1. Before recompiling the shader Inspector will display INVALID_UTF8_STRING
Add comment
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
Resolution Note (2021.2.X):
Everything works correctly when using UTF-8. As it's close to impossible to detect the correct encoding, please use UTF-8. We will update the manual to mention this.