Currently if I want to change the text size of the label I do the following:
var label = GetNode<Label>("Text");
label.AddThemeFontSizeOverride("font_size", 24);
I would like to change the code to a more dynamic way, like so:
label.Set("theme_overrides/font_sizes/font_size", 24);
does the font size modifications support this kind of property update syntax?
here is what the targeted property looks like in the editor:
I figured that "theme_overrides/font_sizes/font_size" would be the correct path but it's not.. How do I properly discover the path of a property?