godotengine / godotengine/godot
get_overlapping_areas() can`t detect resumed Area2D from pause.
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
4.2.1.stable, 4.3.dev5
### System information
win11
### Issue description
Area.get_overlapping_areas() can`t detect resumed Area2D from pause. Where Area2D disable mode is set to remove, pause by setting process_mode to disable.
### Steps to reproduce
make a scene like this

```
extends Node2D
@onready var area_2d = $Area2D
@onready var area_2d_2 = $Area2D2
func _ready():
print("timer 0.2")
await get_tree().create_timer(0.2).timeout
print("area_2d overlap")
print(area_2d.get_overlapping_areas())
print("timer 0.2")
await get_tree().create_timer(0.2).timeout
print("pasue area2")
area_2d_2.process_mode = Node.PROCESS_MODE_DISABLED
print("timer 0.2")
await get_tree().create_timer(0.2).timeout
print("area_2d overlap")
print(area_2d.get_overlapping_areas())
print("resume area2")
area_2d_2.process_mode = Node.PROCESS_MODE_INHERIT
print("timer 0.2")
await get_tree().create_timer(0.2).timeout
print("area_2d overlap")
print(area_2d.get_overlapping_areas())
print("move area_2d2 Vector2.RIGHT * 0.1")
area_2d_2.position += Vector2.RIGHT * 0.1
print("timer 0.2")
await get_tree().create_timer(0.2).timeout
print("area_2d overlap")
print(area_2d.get_overlapping_areas())
```
output

The area_2d_2 is detected after its position changes.
### Minimal reproduction project (MRP)
[BugArea2d.zip](https://github.com/godotengine/godot/files/14628142/BugArea2d.zip)
Contributor guide
Assessment
This issue has not been assessed yet.