Very confused about casting and GameInstance

Hi guys,
I have 2 levels that need to communicate to each other, and more specifically I need a boolean variable from a UI widget I have in the first level (that either turns true or stays the same based on how one interacts with the environment) to be accessed in the second one. I’ve seen a dozen of casting tutorials where everyone give the exact same example with casting to your third person character but I don’t think that’s what I need in my case. How would you go about achieving this? Thank you in advance.

Put the variable in the GI, then you can access it from both places :slight_smile:

Hmm can you link me to an example that does something similar?

It’s not a popular thing to make videos about, but take a look at this

If you get stuck, come back :slight_smile:

2 Likes

Thank you, thank you, thank youuuu! Finally a simple source of info, it was easier than I expected!

2 Likes