Make script changes in real time (without being in play mode)?

Just basically, how can I apply script variables to the editor without being in play mode? So I guess I’m looking for something separate from void Start() since that’s executed when the editor/game is started. I’m basically just wanting sort of a custom editor, but I don’t need that, just how can I make changes of a script real time without being in play mode? Thanks

Add the [ExecuteInEditMode] attribute to the top of your script. Update is then clled in the editor(not every frame though)

If you want a callback every frame take a look at this: