Global variable

Create a GameInstance blueprint (for example, named “MyGI”). Then in Project settings > Maps & Modes, set GameInstance to be the one you just created.

Then on your GameInstance blueprint create the variables you want to be global. Then from any other blueprint call 'Get GameInstance" then pull out that pin and “cast to MyGI.” Then you can access your global variables and they will persist between level loads.

6 Likes