_get is continuously called when editing Resource in Inspector, why?

Godot Version

Godot 4.3

Question

If a Resource file (with @tool) is opened in the Inspector, _get is continuously being called. I am curious why this is happening (as I cannot find any relevant mention in the Docs), is it a feature or a bug? Here is a simple script that demonstrates it:
extends Resource

@export var get_verbose: bool:
set(value):
get_verbose=value
func _get(property):
if get_verbose:
print(“_get:”,property)
return null

Make a resource with that script, toggle get_verbose in inspector and look at output: there is a continuous script of calls for input properties: resource_local_to_scene, resource_path, resource_name.

Is the intended behavior:

According maintainers, it was implemented to “notifying about property change”

Yay thanks AnidemDex!

1 Like