How do I save the activation state of a script when leaving then playing the game?

I have a button that uses the unity event system to set if one of my scripts is enabled or disabled. I can’t find a way to save whether or not the script is enabled or disabled if I were to leave then re-enter the game. ( I’m trying to find a way to save the activation state of the script when I leave then re-enter the game).

Play Mode is one of the key concepts in game development with Unity. The ability to iterate fast in the Editor is a great advantage which allows developers to prototype faster, fail faster, and create great games more easily. The time it takes to enter PlayMode is a vital metric when it comes to fast iterations. With an empty project it typically takes 1.5-2.5 seconds. However, with the project evolving, time to enter Play Mode might grow significantly to 10-25 seconds, crippling productivity.