I’m setting up a UI for my project. This is my first real dive into UIs so I’m on a steep learning curve here.
What happens so far is that during begin play of the player controller a BPI message is sent to a function in the game instance. That function creates a widget and adds it to the screen. The widget has three buttons, ‘New Game’, ‘Load Game’, and ‘Quit’.
I have the ‘New Game’ button tied to an “On Release (Button_NewGame)” event. That looks like this:
The Widget uses the proper BPI (orange box)
The problem is that the game instance object reference is not compatible with the game instance object reference (red box)
How do I make this work? Or is there a better way to do this? I need to get control back to the game instance because it needs to do all the things necessary for a setting up a new game.
This is my first real effort to work with UIs so I’m kind of in the dark here.