Gameinstance cast fails
Do I need to instantiate the game instance somewhere before I access it? I am getting a cast fail.
The below image is in the level blueprint event graph.
Within my gameinstance (called B_Gameinstance), there is nothing in the event graph, or construction script. I have a public variable setup in the game instance blueprint. I try to access the game instance by getting game instance, then casting to the game instance blueprint. That is the point at which it fails.
My first thought is that maybe I need to instantiate the game instance in a more root location like game mode or something like that, but there is no documentation to guide me on this.
I can't look into the Editor right now, but i have in mind that you need to set the GameInstance Class inside the project settings at the button of the Modes tab. Just like the Player Character etc. If i'm right, have you done this?
answered Sep 14 '14 at 06:40 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here