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
- Memory leak when entering and exiting Playmode repeatedly
- An edge with the same input and output already exists error is thrown when operators are connected to blocks
- Memory leaks occur when Shader with more than 128 keywords is compiled
- Player built for Windows silently crashes when UI Prefab is instantiated and Render Feature "Render Objects" is active in PC_Renderer Asset
- Crash on CollectUsedSceneObjects when making any modifications and saving in a Scene with a specific GameObject Component enabled
Resolution Note:
The expation for Assert.IsTrue is true, and thus the assert is valid and no error should be printed.