Hi all,
We are looking for a way to call functions in our singleton GameInstance from custom UUserWidgets. We currently have a lua state which is created in the GameInstance that we need to access statically from our game interface to pass function calls to Lua. As UUserWidgets are not actors we cannot use GetGameInstance() to reference the GameInstance.
Is there an alternative to passing in/spawning an Actor and taking the game instance form that? Or is there a better alternative to create a singleton in which to create our Lua state, which can have functions called in it by UUserWidgets statically.
Cheers.