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
- Label text overflows its rect when resizing the Game view in Free Aspect
- UI Toolkit Slider value defaults to min value when the initial value is set in the UXML file
- The Player hangs when unloading a scene using the UnloadUnusedAssets() method
- [iOS] Too many texture parameters error is thrown when running on devices that support the number of parameters
- [MacOS] Trying to pick a Colour from full-screen window breaks Colour Picker Tool functionality
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