Hello, I trying to get my Label3D to resize the text automatically to fit within its width if the text overflows rather than adding new lines.
From what I’ve seen, that functionality doesn’t currently exist, so I began looking into implementing it myself through a class that extends Label3D.
Some issues I’ve run into so far has been trying to override the SetText method and Text property so that I can re-evaluate the size/scale depending on the new text. (What would have been nice is if Label3D fired an event/signal for OnTextChanged)
It looks like the set methods are not virtual and I’ve been unable to extend via C# or GDScript. I had found a plugin that basically created this functionality for the Label control and it looks like they were able to override set_text in GDScript somehow, while I get an error in my class.
I was just looking for some ideas/insight. Is “_set_text” a valid overridable method that will be called by the engine? Some places online seem to hint that methods prefixed with “_” are virtual, though I didn’t see this method in source. (I may have missed it)