[v4] BaseMaterialEffect fails to set Shader Keywords with some cultures (E.g. Turkish)
ShadowIgnition opened this issue · 1 comments
ShadowIgnition commented
To Reproduce
- Set the current culture to Turkish ("tr-TR").
- Observe the behavior.
Expected behavior
The BaseMaterialEffect should display typical UIEffect visuals regardless of the current culture.
Environment
- Version: 4.0.0-preview.9
- Platform: Editor(Windows), Standalone(Windows) (likely affecting other platforms)
- Unity version: 2021.3.27f1
- Build options: Mono scripting backend
Additional context
This issue affects a wide range of shaders, including but not limited to:
- Sepia and Pixel effect modes
- Fill color mode
- Medium and Detail blur modes
These shaders are affected when the current culture is set to Turkish ("tr-TR"), The root cause of this problem in the Turkish culture is the distinct nature of the 'i' character in Turkish, which differs from the 'i' character in other cultures. This variance disrupts the correct setting of Shader Keywords.