public static void RepaintAnimationWindow() { foreach (AnimationWindow current in AnimationWindow.GetAllAnimationWindows()) { current.Repaint(); } }
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); }
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(); }
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(); }