I'm trying to making a CustomButtonGroup resource type and I want to be able to get all nodes that are referencing a specific instance of this resource.
The scenario I'm trying to do is:
In my CustomButtonGroup I have
var group_name: String
#Here I want to be able to retrieve the buttons that references this instance
var buttons_array = get_referencing() or get_dependents() or...
for button in get_all_buttons():
if not button is CustonButton: return
And this is my CustomButton:
var custom_button_group: CustomButtonGroup
#Execute some code
I know that I can define the
var custom_button_group as
setget and every time it's changed, I append
self inside an array in CustomButtonGroup, but I don't want to do this way because I will use various types of buttons I don't want to create the setget on all then. Futhermore, I want to performe this operations in other situations too.
I was looking about ResourceLoader and ResourceFormatLoader but I cannot understand the documentation (because I'm new to godot yet - 1mo)