GetGameInstance

If you creates your GameInstance variable in blueprint, your variable is inaccessible in C++ code (unless using an overriden getter from C++ code). If you made your GameInstance in C++, you can just call GetGameInstance with a cast and access variable as usual.