Search Issue Tracker
Won't Fix
Won't Fix in 2023.2.X
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
- Font character thickness does not adjust properly in UI Toolkit text when changing Bold Weight in Font Asset
- Multiple "[...] is inaccessible due to its protection level" errors are thrown when opening project with Unity Version Control installed
- Sorting icons are tiny and misaligned in Import Activity window
- The Undo system does not record HideFlags.HideInHierarchy changes
- [Linux] Bug Reporter window is in Light mode when the Editor theme is Dark mode
Resolution Note:
The expation for Assert.IsTrue is true, and thus the assert is valid and no error should be printed.
Resolution Note (2023.2.X):
The expation for Assert.IsTrue is true, and thus the assert is valid and no error should be printed.