Where can I store my Slate widgets ?


I started to get in touch with the Slate system. There is something I can’t find how to do : where do I store my widgets (like STextBox or SEditableText) so I can access them anywhere in my Compound class ? How can I do some things like SetText, SetVisible, GetText on my code, for example when I click on a button I want to change the text of an existing STextBox, and put for example a SEditableText value ?

Thanks !

Okay so I figured it out : I have to declare my widget in the header like this : TSharedPtr<{WidgetType}> {Name}; and then put it into my ChildSlot with SAssignNew({Name}, {WidgetType}) instead of SNew({WidgetType}).