Inheritance: UnityEngine.ScriptableObject
 // 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();
     }
 }
示例#3
0
 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();
 }
示例#4
0
 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();
         }
     }
 }
示例#6
0
 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));
 }
示例#7
0
        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;
        }
示例#8
0
 public AnimationShortcutContex(AnimEditor animEditor)
 {
     m_AnimEditor = animEditor;
 }