So I am trying to build an editor mode to speed up the level building process but I have got myself stuck with something I didn’t anticipate would be an issue.
I am used to scripting for Blender which builds its interface every frame and is pretty much completely programmatic about building the interface so you can do normal control flow stuff to build the interface; Slate seems very different and there are not many useful resources to look things up.
Some Questions:
-
How do I rebuild a widget? I have a button I am trying to use to rebuild the widget but none of the functions I have called seem to rebuild the widget at all (I am testing by polling the number of selected items in Construct). Also the Class I am using is a subclass of SCompoundWidget if that helps or is relevant.
-
How do I have a widget with say child widgets WidgetForContextA and WidgetForContextB and sometimes build A and not B and vice versa? I think it is important that I can choose not to build certain widgets because they will need a valid pointer to an object in the scene that is selected.
-
For bonus points, is it possible to add a widget to the viewport.
Would appreciate some Unreal CPP gigabrains to show me the way.