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;
        }
예제 #2
0
        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);
                }
            }
        }