I’m storing a reference to each gui button in a array. My current solution is to get each reference with gui.get_node(“button_play”) and so on. Is there a way to get all nodes in a gui without knowing their id?
No, your solution is the way to go for nodes created in the editor. You need their id:s. If you create nodes dynamically you get a unique id back from the gui.new_*() function and you have to store that.
1 Like