Input Variables in my blutility resets everytime I reopen the window/level,Input variables in my Blutility resets everytime I reopen

Hey Guys,

I have blutility class where I can take input from the user, but, everytime I close the window the text fields are reset. Is there any solution, so that the values persist even with closing and reopening of the blutility window?

Thank you

,

To make variables not reset I store them in the game instance. The game instance stays the same as long as you are playing the game. It does, however, mean you need to cast to the game instance to get and store them. Here is a good video on the topic:

Thank you so much for this, it was really helpful.