uhhh what? I’m trying to grab a reference to a variable held in my game instance but I’m getting this absolutely paradoxical error message. i’ve tried casting the reference to game instance as well, but that didn’t do anything. any idea about what is going on with this?
What happens when you drag that return value pin out, release it on an empty space and search for what you want with the context filter on?
That’s what I did to create the variable reference. It just appears in the event graph without being plugged into the Get Game Instance node.
Edit: Oh, with context filter on it doesn’t bring it up
Without much context, all I can suggest is checking this tutorial out:
Can you try implementing the steps in this tutorial in a new third person template project? Hopefully you can spot the difference with your implementation this way
I figured it out; it seems like the Get Game Instance node gets a reference to the default Game Instance, which is a C++ object. I created my own blueprint Game Instance and switched to that in the project settings. I assumed that’s what Get Game Instance will grab, but it’s not. So I changed the name of my custom Game Instance to “MyGameInstance” and casted to that (I think I was casting the default Game Instance to itself before). Now it’s working.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.