How do I show editable Text on prefab in editor

I’ve successfully created my first prefab (custom object/extension) :partying_face:
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)

I wish you could expose a child object’s property or an entire object but unfortunately you can’t. You need to add functions to get and set the value.

You could add a property, change it to string or multi-line text and then add functions to create an action to set it and an expression to get the value. You could also add a condition.

If you go to the property list, you can have it generate an expression and action.

After adding and setting up the property, you can have GD add an action and expression. You can then change the functions to point towards the text object.

You can look at how the button prefab is setup.