public void UpdateEditorVisualTreePhase(VisualTreeEditorUpdatePhase phase) { var updater = m_EditorUpdaterArray[phase]; using (updater.profilerMarker.Auto()) { updater.Update(); } }
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; }
public IVisualTreeUpdater this[VisualTreeEditorUpdatePhase phase] { set { m_VisualTreeUpdaters[(int)phase] = value; } get { return(m_VisualTreeUpdaters[(int)phase]); } }
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; }