// Can be used to ensure repaint of AnimationWindow public static void RepaintAnimationWindow() { foreach (AnimEditor animEditor in AnimEditor.GetAllAnimationWindows()) { animEditor.Repaint(); } }
public static void RepaintAnimationWindow() { foreach (AnimEditor current in AnimEditor.GetAllAnimationWindows()) { current.Repaint(); } }
public void OnEnable() { if (this.m_AnimEditor == null) { this.m_AnimEditor = (ScriptableObject.CreateInstance(typeof(AnimEditor)) as AnimEditor); this.m_AnimEditor.hideFlags = HideFlags.HideAndDontSave; } AnimationWindow.s_AnimationWindows.Add(this); base.titleContent = base.GetLocalizedTitleContent(); }
public void OnEnable() { if (this.m_AnimEditor == null) { this.m_AnimEditor = ScriptableObject.CreateInstance(typeof(AnimEditor)) as AnimEditor; this.m_AnimEditor.hideFlags = HideFlags.HideAndDontSave; } s_AnimationWindows.Add(this); base.titleContent = base.GetLocalizedTitleContent(); }
public static void RepaintAnimationWindow() { using (List <AnimEditor> .Enumerator enumerator = AnimEditor.GetAllAnimationWindows().GetEnumerator()) { while (enumerator.MoveNext()) { enumerator.Current.Repaint(); } } }
public void OnEnable() { if (this.m_AnimEditor == null) { this.m_AnimEditor = (ScriptableObject.CreateInstance(typeof(AnimEditor)) as AnimEditor); this.m_AnimEditor.hideFlags = HideFlags.HideAndDontSave; } AnimationWindow.s_AnimationWindows.Add(this); base.titleContent = base.GetLocalizedTitleContent(); this.OnSelectionChange(); Undo.undoRedoPerformed = (Undo.UndoRedoCallback)Delegate.Combine(Undo.undoRedoPerformed, new Undo.UndoRedoCallback(this.UndoRedoPerformed)); }
public void OnEnable() { if (m_AnimEditor == null) { m_AnimEditor = CreateInstance(typeof(AnimEditor)) as AnimEditor; m_AnimEditor.hideFlags = HideFlags.HideAndDontSave; } s_AnimationWindows.Add(this); titleContent = GetLocalizedTitleContent(); m_DefaultTitleContent = titleContent; m_RecordTitleContent = EditorGUIUtility.TextContentWithIcon(titleContent.text, "Animation.Record"); OnSelectionChange(); Undo.undoRedoPerformed += UndoRedoPerformed; }
public AnimationShortcutContex(AnimEditor animEditor) { m_AnimEditor = animEditor; }