protected override void OnDestroy() { SplineUser user = (SplineUser)target; if (Application.isEditor && !Application.isPlaying) { if (user == null) { OnDelete(); //The object or the component is being deleted } else if (user.computer != null) { if (!generatedUvs) { user.Rebuild(true); } } } SplineEditor.hold = false; }
protected virtual void OnDestroy() { if (pathWindow != null) { pathWindow.Close(); } SplineUser user = (SplineUser)target; if (Application.isEditor && !Application.isPlaying) { if (user == null) { OnDelete(); //The object or the component is being deleted } else if (user.computer != null) { user.Rebuild(true); } } }