How can i check for overlaps in a tool script?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Sabudum

I have two objects which contain Area nodes in them and Sphere shapes for each.

I want to verify if these objects are overlapping and when one body enters the other one, in the editor, not during runtime.

So, is there a way to verify overlaps in editor using tool scripts?

:bust_in_silhouette: Reply From: njamster
extends Area2D

func _ready():
	connect("area_entered", self, "_on_area_entered")

func _on_area_entered(area):