private void Extract() { AnimationCurve sourceCurve = AnimationUtility.GetEditorCurve(_SourceAnimationClip, _Curves[_SelectedCurveIndex]); _PopupTargetAnimationCurveProperty.animationCurveValue = AnimationCurveCopier.CreateCopy(sourceCurve); _PopupTargetAnimationCurveProperty.serializedObject.ApplyModifiedProperties(); }
static void CopyAnimationCurve(MenuCommand inCommand) { if (_PopupTargetAnimationCurveProperty != null) { _ClipBoardAnimationCurve = AnimationCurveCopier.CreateCopy(_PopupTargetAnimationCurveProperty.animationCurveValue); } }
static void PasteAnimationCurve(MenuCommand inCommand) { if (_PopupTargetAnimationCurveProperty != null) { _PopupTargetAnimationCurveProperty.serializedObject.Update(); _PopupTargetAnimationCurveProperty.animationCurveValue = AnimationCurveCopier.CreateCopy(_ClipBoardAnimationCurve); _PopupTargetAnimationCurveProperty.serializedObject.ApplyModifiedProperties(); } }