Symbol and HTML entities will not render in WebGL when placed in viewmodel
Posted: 30 May 2024, 15:15
NoesisGUI v 3.2.0
Unity v 2022.3.5f1
I have a TextBlock element with the Text property bind to a string property in the ViewModel. When launched in WebGL, there seems to be some rendering issues with the symbols. The text:
Text displayed in WebGL when placed in the ViewModel to bind:
Text displayed in WebGL when placed directly in the Text property of the xaml (no binding):
Text displayed in Unity when placed in the ViewModel to bind:
Text displayed in Unity when placed directly in the Text property of the xaml (no binding):
There seems to be something going on with the binding with the viewmodel and xaml in WebGL. If I wanted to properly display the symbol in the TextBlock's Text through the viewmodel in WebGL, how would I go to approach this?
Unity v 2022.3.5f1
I have a TextBlock element with the Text property bind to a string property in the ViewModel. When launched in WebGL, there seems to be some rendering issues with the symbols. The text:
This is the symbol: Ω ; Entity: Ω Ohm entity: Ω \nΩ \nΩ \nΩ
Text displayed in WebGL when placed in the ViewModel to bind:
Text displayed in WebGL when placed directly in the Text property of the xaml (no binding):
Text displayed in Unity when placed in the ViewModel to bind:
Text displayed in Unity when placed directly in the Text property of the xaml (no binding):
There seems to be something going on with the binding with the viewmodel and xaml in WebGL. If I wanted to properly display the symbol in the TextBlock's Text through the viewmodel in WebGL, how would I go to approach this?