I’ve successfully created my first prefab (custom object/extension) ![]()
It’s a simple thing: a framed text box (just a text and a sprite combined):
But the text isn’t updated in the editor with the text I enter, so I cannot resize the element at design time to be the correct size. The standard Button element can do this. So how to do that?
I’ve added a property to hold the “text to be displayed” and it updates correctly at runtime…
Also I would love to expose the property in the editor, but that I can’t figure out either… maybe it’s not possible as that is not a feature on the standard Buttons (but would be nice)




