Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2020.3.X, 2021.3.X, 2022.1.X
Votes
0
Found in
2019.4
2020.3
2020.3.22f1
2021.2
2022.1
Issue ID
1382752
Regression
No
Ternary operation with implicit type conversion from byte returns incorrect value when the operation is done in WebGL build
How to reproduce:
1. Open the attached project "Webglconvertion.zip"
2. Open "SampleScene" Scene
3. Enter Play Mode
4. Observe the result
5. Switch to the WebGL platform and press “Build And Run”
6. Observe the result
Expected result: The result in both the Play Mode and the WebGL Player is -167
Actual result: The result in Player is 89 instead
Reproducible with: 2019.4.34f1, 2020.3.25f1, 2021.2.7f1, 2022.1.0b2
Note: Issue is not present in standalone Player
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
- Prefab's scripts are constantly reloaded when trying to enter multiple digits or characters into public fields on custom scripts consecutively
- Crash on mono_g_hash_table_find_slot when entering Play Mode
- [iOS] Crash when pressing "Done" on the keyboard layout
- Sprite Atlas remains loaded in memory after scene change or unloading assets
- Decompressing a DeflateStream under IL2CPP misses a few bytes
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a7
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0b16
Resolution Note (fix version 2021.3):
Fixed in: 2021.3.1f1
Resolution Note (fix version 2020.3):
Fixed in: 2020.3.34f1