public override void OnInspectorGUI() { DrawDefaultInspector(); progressBar.ApplyValuesInEditorMode(); if (GUI.changed) { SetDirty(progressBar.gameObject); } }