コード例 #1
0
        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
        }
コード例 #2
0
 set => SetValue(RecordingProperty, value);
コード例 #3
0
 public static void StopAnimationMode()
 {
     RecordingProperty.SetValue(GetState(), false, null);
 }
コード例 #4
0
 public static void StartAnimationMode()
 {
     RecordingProperty.SetValue(GetState(), true, null);
 }