“hot will the save variables know they are part of the ones from the game instance?”
It won’t, and they aren’t.
When you save the game, you have to:
- Retrieve your game instance
- Get the values you want to save from the game instance
- Set the values you want to save in the game save
- Save the game save
When you load the game you have to:
- Read the game save from disk
- Retrieve your game instance
- Get the values from the game save
- Assign those values to the variables in your game instance.
It’s the exact same process you did below to save your inventory value in the character, you’re just using the inventory value in the game instance instead of in the character.
You’ll have to do the same thing with the booleans, and with the active ids.