static void OnEditorUpdate() { if (Knobs.HasNewValues()) { for (int i = 0; i < Knobs.NUM_KNOBS; i++) { Shader.SetGlobalFloat($"Knob{i}", Knobs.Get(i)); } EditorApplication.QueuePlayerLoopUpdate(); } }