But, I can’t see how to fire the event. I tried to use an event dispatcher, but then I have to get a reference to the global vars object which is not available.
I must be missing something simple, but search the web and this forum did not help.
Edit:
This is a single player game, but other threads said I can still use RepNotify to detect when a variable changes.
Thank you for the response. I was thinking it would be less error prone to fire an event on the variable being changed than to keep track of all the different places that change it. Is there no good way to do that?
They are always accessible, but you will have to cast to your current blueprint like BP_GameInstance. Then you can change variables in this blueprint, e.g.: