Basically what the title says. Can I look for a variable with a name equivalent to "something", rather than directly naming it? Kind of like a "get_node()" but with a variable?
Is there a way to get a variable by checking if it's name is equal to a value?
You can use Object._get_property_list()
You can also use node.get("name_here")
and it will return the value if it exists, or null
if it doesn't.
Thank you very much :)
a year later
Megalomaniak added the Godot Help tag .