Beispiel #1
0
        public void UpdateEditorVisualTreePhase(VisualTreeEditorUpdatePhase phase)
        {
            var updater = m_EditorUpdaterArray[phase];

            using (updater.profilerMarker.Auto())
            {
                updater.Update();
            }
        }
Beispiel #2
0
        private void SetEditorUpdater <T>(VisualTreeEditorUpdatePhase phase) where T : IVisualTreeUpdater, new()
        {
            m_EditorUpdaterArray[phase]?.Dispose();
            var updater = new T()
            {
                panel = m_Panel
            };

            m_EditorUpdaterArray[phase] = updater;
        }
Beispiel #3
0
 public IVisualTreeUpdater this[VisualTreeEditorUpdatePhase phase]
 {
     set { m_VisualTreeUpdaters[(int)phase] = value; }
     get { return(m_VisualTreeUpdaters[(int)phase]); }
 }
Beispiel #4
0
 public IVisualTreeUpdater GetEditorUpdater(VisualTreeEditorUpdatePhase phase)
 {
     return(m_EditorUpdaterArray[phase]);
 }
 public void SetUpdater(IVisualTreeUpdater updater, VisualTreeEditorUpdatePhase phase)
 {
     m_UpdaterArray[phase]?.Dispose();
     updater.panel         = m_Panel;
     m_UpdaterArray[phase] = updater;
 }