I have 2 GameInstances (1 Blueprint and 1 C++) from 3rd party packages that I need to integrate into a project. The project needs to be completed by next month so I don’t have time to re-write these, so I’m hoping one of you can help.
I’m fairly new to UE4 and have some experience exposing C++ to Blueprints, but not much having them inherit from each other.
The easiest would be to work with the C++ one and have the Blueprint as its parent class, however; I’m not sure how to set this up. If possible, how can I specify a Blueprint as the parent class for a C++ GameInstance?
If not possible, I need help understanding how to call the C++ GameInstance functions from Blueprints, or which ones can’t be called so I can find an alternate approach.
Specifically:
- Init and Shutdown - Assuming I can just call Parent:Init and Parent:Shutdown for these.
- StartGameInstance - Is there a way to call this in Blueprints? If not, when does this execute compared to Init. I think I can put this functionality in Init if they are both only executed once at startup.
- Exec - This is only used for runtime console commands, so I can port to Blueprints unless there’s an easy way to call this from Blueprints.
Thanks for any assistance!