Search Issue Tracker
Won't Fix
Votes
0
Found in
2021.3.35f1
Issue ID
UUM-65376
Regression
No
Physics2D.OverlapPoint does not check if Collider2D is overlapping when the Scene is reloaded in Play Mode
Reproduction steps:
1. Open the “ReproProject“ project
2. Open the “Assets/_Safeguard/Scenes/Main“ scene
3. Enter Play Mode
4. Click on the castle in the middle of the Game View
5. Click on the “Restart” button in the top right of the Game View
6. Repeat step 4
7. Observe the Game View
Expected result: A grid and walls around the castle appear
Actual result: Nothing happens
Reproducible with: 2021.3.35f1, 2022.3.18f1
Not reproducible with: 2022.3.20f1, 2023.2.13f1, 2023.3.0b10
Fixed in: 2022.3.19f1
Reproducible on: Windows 11 Pro (22H2)
Not reproducible on: No other environment tested
Note:
Selecting the “Citadal(Clone)“ GameObject in the Hierarchy window, checking the Is Trigger, and unchecking the Is Trigger parameter in the Box Collider 2D component fixes the issue, and the castle is selectable again in the Game View
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
This is not a Unity case, but rather, the API was used in a wrong way.
This use case is setting timeScale to zero in the TimeScaleManager::Update method. Disabling this manager in the scene makes everything work.
The above problem would affect not just 2D physics but also 3D physics and many other systems that rely on FixedUpdate.
When changing e a collider in any way via the inspector, it's recreated at its current position regardless.
If calling Instantiate then one should provide the position/rotation/parent in the call there and then which doesn't required any synchronisation.