Search Issue Tracker
By Design
Votes
0
Found in
2022.3.10f1
2023.1.16f1
2023.2.0b12
2023.3.0a8
Issue ID
UUM-52920
Regression
No
PhysicsScene.OverlapSphere is not working when calling it in the custom physics scene
How to reproduce:
1. Open the attached project “OverlapSphere”
2. Open the “IN-50407_OverlapSphereTest” scene
3. Enter the Play mode
4. Observe the Console
Expected result: The message informing about the collider count is logged into the Console
Actual result: There is no message informing about the collider count
Reproducible with: 2022.3.10f1, 2023.1.16f1, 2023.2.0b12, 2023.3.0a8
Can’t test with: 2021.3.31f1 (The script can’t be loaded without any compilation errors)
Reproducible on: Windows 11 Pro
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
To specify the default layer mask, Physics.DefaultRaycastLayers should be used. In this project, the `default` keyword is used, which really gets resolved to 0 (no layers selected).