コード例 #1
0
        private void Extract()
        {
            AnimationCurve sourceCurve = AnimationUtility.GetEditorCurve(_SourceAnimationClip, _Curves[_SelectedCurveIndex]);

            _PopupTargetAnimationCurveProperty.animationCurveValue = AnimationCurveCopier.CreateCopy(sourceCurve);
            _PopupTargetAnimationCurveProperty.serializedObject.ApplyModifiedProperties();
        }
コード例 #2
0
 static void CopyAnimationCurve(MenuCommand inCommand)
 {
     if (_PopupTargetAnimationCurveProperty != null)
     {
         _ClipBoardAnimationCurve = AnimationCurveCopier.CreateCopy(_PopupTargetAnimationCurveProperty.animationCurveValue);
     }
 }
コード例 #3
0
 static void PasteAnimationCurve(MenuCommand inCommand)
 {
     if (_PopupTargetAnimationCurveProperty != null)
     {
         _PopupTargetAnimationCurveProperty.serializedObject.Update();
         _PopupTargetAnimationCurveProperty.animationCurveValue = AnimationCurveCopier.CreateCopy(_ClipBoardAnimationCurve);
         _PopupTargetAnimationCurveProperty.serializedObject.ApplyModifiedProperties();
     }
 }