Exemplo n.º 1
0
        private void Extract()
        {
            AnimationCurve sourceCurve = AnimationUtility.GetEditorCurve(_SourceAnimationClip, _Curves[_SelectedCurveIndex]);

            _PopupTargetAnimationCurveProperty.animationCurveValue = AnimationCurveCopier.CreateCopy(sourceCurve);
            _PopupTargetAnimationCurveProperty.serializedObject.ApplyModifiedProperties();
        }
Exemplo n.º 2
0
 static void CopyAnimationCurve(MenuCommand inCommand)
 {
     if (_PopupTargetAnimationCurveProperty != null)
     {
         _ClipBoardAnimationCurve = AnimationCurveCopier.CreateCopy(_PopupTargetAnimationCurveProperty.animationCurveValue);
     }
 }
Exemplo n.º 3
0
 static void PasteAnimationCurve(MenuCommand inCommand)
 {
     if (_PopupTargetAnimationCurveProperty != null)
     {
         _PopupTargetAnimationCurveProperty.serializedObject.Update();
         _PopupTargetAnimationCurveProperty.animationCurveValue = AnimationCurveCopier.CreateCopy(_ClipBoardAnimationCurve);
         _PopupTargetAnimationCurveProperty.serializedObject.ApplyModifiedProperties();
     }
 }