void OnEnable() { lodGroupSetup = (LODGroupSetup)target; oldLods = lodGroupSetup.lodGroup.GetLODs(); UnityEditor.EditorApplication.update += MyUpdate; }
void OnEnable() { lodGroupSetup = (LODGroupSetup)target; LODGroup lodGroup = lodGroupSetup.lodGroup; oldLods = lodGroup.GetLODs(); animateCrossFadingOld = lodGroup.animateCrossFading; fadeModeOld = lodGroup.fadeMode; UnityEditor.EditorApplication.update += MyUpdate; }