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”

  1. Resolution Note:

    The expation for Assert.IsTrue is true, and thus the assert is valid and no error should be printed.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.