How to persist global variable value in visual scripting

Hi, does anyone know how to persist a global variable value in visual scripting? It seems that whenever video recording starts, the value always resets.

I have a state that I want to keep track of before the user starts video recording, and I need to access this state when recording begins. However, the state keeps resetting at the start of recording. Is there a way to make this state persist?

1 Like

Found the answer… The state reset is caused by the reset on record feature

So you could just turn that off and the state will persist!

strong text