Inheritance: EditorWindow, TimeUpdater, CurveUpdater
コード例 #1
0
 public static void RepaintAnimationWindow()
 {
     foreach (AnimationWindow current in AnimationWindow.GetAllAnimationWindows())
     {
         current.Repaint();
     }
 }
コード例 #2
0
        public AnimationSelection(GameObject[] animatedOptions, SerializedStringTable chosenAnimated, SerializedStringTable chosenClip, AnimationWindow editor)
        {
            this.m_AnimationWindow = editor;
            this.m_AnimatedOptions = animatedOptions;
            string stringArrayHashCode = AnimationSelection.GetStringArrayHashCode(this.GetAnimatedObjectNames());

            if (!chosenAnimated.Contains(stringArrayHashCode))
            {
                chosenAnimated.Set(stringArrayHashCode, animatedOptions.Length - 1);
            }
            this.m_AnimatedObjectIndex = chosenAnimated.Get(stringArrayHashCode);
            this.RefreshChosenClip(chosenClip);
        }
コード例 #3
0
        static void KeyModified(ShortcutArguments args)
        {
            AnimationWindow animationWindow = AnimationWindow.GetAllAnimationWindows().Find(aw => (aw.state.previewing || aw == EditorWindow.focusedWindow));

            if (animationWindow == null)
            {
                return;
            }

            var animEditor = animationWindow.animEditor;

            animEditor.SaveCurveEditorKeySelection();
            animEditor.controlInterface.ProcessCandidates();
            animEditor.UpdateSelectedKeysToCurveEditor();

            animEditor.Repaint();
        }
コード例 #4
0
        static void KeySelected(ShortcutArguments args)
        {
            AnimationWindow animationWindow = AnimationWindow.GetAllAnimationWindows().Find(aw => (aw.state.previewing || aw == EditorWindow.focusedWindow));

            if (animationWindow == null)
            {
                return;
            }

            var animEditor = animationWindow.animEditor;

            animEditor.SaveCurveEditorKeySelection();
            AnimationWindowUtility.AddSelectedKeyframes(animEditor.m_State, animEditor.controlInterface.time);
            animEditor.controlInterface.ClearCandidates();
            animEditor.UpdateSelectedKeysToCurveEditor();

            animEditor.Repaint();
        }
コード例 #5
0
		public AnimationSelection(GameObject[] animatedOptions, SerializedStringTable chosenAnimated, SerializedStringTable chosenClip, AnimationWindow editor)
		{
			this.m_AnimationWindow = editor;
			this.m_AnimatedOptions = animatedOptions;
			string stringArrayHashCode = AnimationSelection.GetStringArrayHashCode(this.GetAnimatedObjectNames());
			if (!chosenAnimated.Contains(stringArrayHashCode))
			{
				chosenAnimated.Set(stringArrayHashCode, animatedOptions.Length - 1);
			}
			this.m_AnimatedObjectIndex = chosenAnimated.Get(stringArrayHashCode);
			this.RefreshChosenClip(chosenClip);
		}