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
- [Android][iOS] The keyboard closes and re-opens when consecutive input fields are selected
- Complex Sub Graph connected to a Voronoi node is ignored when the shader gets applied as a Material
- Compute Shader property not set error when entering play mode with path tracing and PBR sky
- "WebGL Publish" detects WebGL module and allows building when it is installed without restarting the project
- Editor is non-responsive and flickers when multiple Water System instances are enabled
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