예제 #1
0
        public void RemoveKeyframe(KeyFrameMode mode, int index)
        {
            KeyframeEntry k = Keyframes.Remove(mode, index);

            if (k != null)
            {
                k._prev.GenerateTangent();
                k._next.GenerateTangent();
                SignalPropertyChange();
            }
        }
예제 #2
0
        public void DeleteKeyframe(HitboxKeyframe keyframe)
        {
            if (!Keyframes.Contains(keyframe))
            {
                return;
            }
#if UNITY_EDITOR
            Undo.RecordObject(this, "Delete Keyframe");
#endif
            Keyframes.Remove(keyframe);
            InternalOnChange();
        }
        public void RemoveKeyframe(int arrayIndex, int index)
        {
            KeyframeEntry k = Keyframes.Remove(arrayIndex, index);

            if (k != null && _generateTangents &&
                _alterAdjTangents && _alterAdjTangents_KeyFrame_Del)
            {
                k._prev.GenerateTangent();
                k._next.GenerateTangent();
                SignalPropertyChange();
            }
        }