public static void StartAnimationMode()
        {
//			MethodInfo onSelectionChange = ANIMATION_WINDOW_TYPE.GetMethod( "OnSelectionChange", BindingFlags.Instance | BindingFlags.Public, null, new Type[0], null );
//			onSelectionChange.Invoke(AnimationWindow, null);
//			object[] selectedAnimation = (object[])SelectedAnimationField.GetValue( AnimationWindow );
//			Transform t = Selection.activeTransform;
//			Selection.activeTransform = null;
//			Selection.activeTransform = t;
//			MethodInfo reenterAnimationMode = ANIMATION_WINDOW_TYPE.GetMethod( "ReEnterAnimationMode", BindingFlags.Instance | BindingFlags.Public, null, new Type[0], null );
//			reenterAnimationMode.Invoke( AnimationWindow, null );
#if UNITY_5_0
            BeginAnimationMode.Invoke(AnimationWindow, new object[] { false });
#else
            RecordingProperty.SetValue(GetState(), true, null);
#endif
        }
 public static void StopAnimationMode()
 {
     RecordingProperty.SetValue(GetState(), false, null);
 }
 public static void StartAnimationMode()
 {
     RecordingProperty.SetValue(GetState(), true, null);
 }