public void OnGUI() { this.m_IncrementalInitialize.OnEvent(); bool showLoadingScreen = false; IncrementalInitialize.State state = this.m_IncrementalInitialize.state; if (state != IncrementalInitialize.State.PreInitialize) { if (state == IncrementalInitialize.State.Initialize) { this.BuildAssetList(); } } else { showLoadingScreen = true; } if (this.CheckAssetExportList()) { return; } EditorGUI.BeginDisabledGroup(!this.HasValidAssetList()); this.TopArea(); EditorGUI.EndDisabledGroup(); this.TreeViewArea(showLoadingScreen); EditorGUI.BeginDisabledGroup(!this.HasValidAssetList()); this.BottomArea(); EditorGUI.EndDisabledGroup(); }
public void OnGUI() { this.m_IncrementalInitialize.OnEvent(); bool showLoadingScreen = false; IncrementalInitialize.State state = this.m_IncrementalInitialize.state; if (state != IncrementalInitialize.State.PreInitialize) { if (state == IncrementalInitialize.State.Initialize) { this.BuildAssetList(); } } else { showLoadingScreen = true; } if (!this.CheckAssetExportList()) { using (new EditorGUI.DisabledScope(!this.HasValidAssetList())) { this.TopArea(); } this.TreeViewArea(showLoadingScreen); using (new EditorGUI.DisabledScope(!this.HasValidAssetList())) { this.BottomArea(); } } }
public void OnEvent() { if (this.m_IncrementOnNextEvent) { this.m_InitState++; this.m_IncrementOnNextEvent = false; } IncrementalInitialize.State initState = this.m_InitState; if (initState != IncrementalInitialize.State.PreInitialize) { if (initState == IncrementalInitialize.State.Initialize) { this.m_IncrementOnNextEvent = true; } } else if (Event.current.type == EventType.Repaint) { this.m_IncrementOnNextEvent = true; HandleUtility.Repaint(); } }
public void Restart() { this.m_InitState = IncrementalInitialize.State.PreInitialize; }