Hi. I am relatively new to Unreal, so still learning its api. I created editor plugin, where I have my toolbar buttons. I obviously know how to call action when button is pressed, it all works. My problem is that I need to call some function that is in my game code, particularly inside my own Game Instance. Plugin is not aware of the game project, so including any of the game files into plugin, obviously fails the compilation of the plugin. I was trying delegates, but they don’t seem to work either. I tried declaring console command and its callback inside the game instance, and then in plugin use it by GetWorld()->Exec, but it did not call my command at all. I am wondering if there’s a way to communicate from plugin to the game code?
Okay, that was quick I simply included my game module in plugin.Build.cs