Пример #1
0
        /// <summary> Removes a keyframe at a given index. </summary>
        /// <param name="keyframe"> </param>
        public void DeleteKeyframe(int keyframe)
        {
            Argument.Check(Check.Range(keyframe, Keyframes));
#if UNITY_EDITOR
            Undo.RecordObject(this, "Delete Keyframe");
#endif
            Keyframes.RemoveAt(keyframe);
            InternalOnChange();
        }