unity custom editor save changes code example Example: unity custom editor save changes EditorUtility.SetDirty(castedTarget);