Search Issue Tracker
Won't Fix
Votes
0
Found in
2020.3.46f1
2021.3.20f1
2022.2.10f1
2023.1.0b7
2023.2.0a5
Issue ID
UUM-29254
Regression
No
”Assert.IsTrue” is not working when checking if “layerMask.value” is 0 when it’s 0
How to reproduce:
1. Open the attached “CheckLayer.zip” project
2. Open the “SampleScene” Scene (Assets > Scenes > SampleScene)
3. Enter Play Mode and observe the Console window
Expected result: “AssertionException: Error!” error is printed
Actual result: “AssertionException: Error!” error is not printed
Reproducible with: 2020.3.46f1, 2021.3.20f1, 2022.2.10f1, 2023.1.0b7, 2023.2.0a5
Reproduced on: macOS 13.2.1 (Intel)
Note: Not reproducible when setting “layerMask.value” to 1 and Layer Mask to “Everything”
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
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
Resolution Note:
The expation for Assert.IsTrue is true, and thus the assert is valid and no error should be printed.