How to use set_tab_title() correctly?
I have a TabContainer node with two Tabs nodes as children. I want to be able to set their titles at runtime as one of them has to change its title when needed. However all I get is the error: Index p_tab = 0 is out of bounds (tabs.size() = 0) when using set_tab_title(). Set_tab_title() is being called on the child Tabs nodes in the TabContainer's script which extends TabContainer, if that helps.
I'm guessing perhaps I have to set up their indeces somewhere but I can't find anything on how to do that. Help would be appreciated.