コード例 #1
0
        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();
        }
コード例 #2
0
        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();
                }
            }
        }
コード例 #3
0
 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();
     }
 }
コード例 #4
0
 public void Restart()
 {
     this.m_InitState = IncrementalInitialize.State.PreInitialize;
 }
コード例 #5
0
 public void Restart()
 {
   this.m_InitState = IncrementalInitialize.State.PreInitialize;
 }