I am trying to make opening a WebBrowser widget as optional so that it checks some properties in the UMyPlatformGameInstance, and depending on their state, either exits immediately or opens up.
Now I assume I need to catch some “OnConstruct” event in my WebBrowser widget, and then ask the parameters from the UMyPlatformGameInstance, and then exit/launch as appropriate.
Problem is that there is no OnConstruct event available in the WebBrowser widget. Well, there are these “cosmetic Construct events”, and “should not be used in gameplay”. And they do not seem to be triggered in the construct as one might expect. So what to do?
So how to do this?