Пример #1
0
 private void OnEnable()
 {
     OcclusionCullingWindow.ms_OcclusionCullingWindow = this;
     base.autoRepaintOnSceneChange   = true;
     EditorApplication.searchChanged = (EditorApplication.CallbackFunction)Delegate.Combine(EditorApplication.searchChanged, new EditorApplication.CallbackFunction(base.Repaint));
     base.Repaint();
 }
		private void OnEnable()
		{
			OcclusionCullingWindow.ms_OcclusionCullingWindow = this;
			base.autoRepaintOnSceneChange = true;
			EditorApplication.searchChanged = (EditorApplication.CallbackFunction)Delegate.Combine(EditorApplication.searchChanged, new EditorApplication.CallbackFunction(base.Repaint));
			base.Repaint();
		}
 void OnEnable()
 {
     titleContent = GetLocalizedTitleContent();
     ms_OcclusionCullingWindow        = this;
     autoRepaintOnSceneChange         = true;
     EditorApplication.searchChanged += Repaint;
     Repaint();
 }
 private void OnEnable()
 {
   this.titleContent = this.GetLocalizedTitleContent();
   OcclusionCullingWindow.ms_OcclusionCullingWindow = this;
   this.autoRepaintOnSceneChange = true;
   EditorApplication.searchChanged += new EditorApplication.CallbackFunction(((EditorWindow) this).Repaint);
   this.Repaint();
 }
Пример #5
0
 private void OnEnable()
 {
     this.titleContent = this.GetLocalizedTitleContent();
     OcclusionCullingWindow.ms_OcclusionCullingWindow = this;
     this.autoRepaintOnSceneChange    = true;
     EditorApplication.searchChanged += new EditorApplication.CallbackFunction(((EditorWindow)this).Repaint);
     this.Repaint();
 }
Пример #6
0
 private void OnEnable()
 {
     base.titleContent               = base.GetLocalizedTitleContent();
     ms_OcclusionCullingWindow       = this;
     base.autoRepaintOnSceneChange   = true;
     EditorApplication.searchChanged = (EditorApplication.CallbackFunction)Delegate.Combine(EditorApplication.searchChanged, new EditorApplication.CallbackFunction(this.Repaint));
     base.Repaint();
 }
 void OnEnable()
 {
     titleContent = GetLocalizedTitleContent();
     ms_OcclusionCullingWindow        = this;
     autoRepaintOnSceneChange         = true;
     EditorApplication.searchChanged += Repaint;
     Repaint();
     m_OverlayWindow = new OverlayWindow(EditorGUIUtility.TrTextContent("Occlusion Culling"), DisplayControls, (int)SceneViewOverlay.Ordering.OcclusionCulling, null, SceneViewOverlay.WindowDisplayOption.OneWindowPerTarget);
 }
        private static void GenerateWindow()
        {
            OcclusionCullingWindow window = EditorWindow.GetWindow <OcclusionCullingWindow>(new Type[]
            {
                typeof(InspectorWindow)
            });

            window.minSize = new Vector2(300f, 250f);
        }
            public override void OnGUI()
            {
                if (m_Window == null)
                {
                    var wins = Resources.FindObjectsOfTypeAll(typeof(OcclusionCullingWindow)) as OcclusionCullingWindow[];
                    m_Window = wins.Length > 0 ? wins[0] : null;
                }

                if (m_Window != null)
                {
                    m_Window.DisplayControls();
                }
            }
Пример #10
0
 private static void GenerateWindow()
 {
     if (Application.HasAdvancedLicense())
     {
         OcclusionCullingWindow window = EditorWindow.GetWindow <OcclusionCullingWindow>(new Type[]
         {
             typeof(InspectorWindow)
         });
         window.title   = "Occlusion";
         window.minSize = new Vector2(300f, 250f);
     }
     else
     {
         Debug.LogError("Occlusion Culling is only supported in Unity Pro.");
     }
 }
 void OnDisable()
 {
     ms_OcclusionCullingWindow        = null;
     EditorApplication.searchChanged -= Repaint;
 }
 private void OnDisable()
 {
   OcclusionCullingWindow.ms_OcclusionCullingWindow = (OcclusionCullingWindow) null;
   EditorApplication.searchChanged -= new EditorApplication.CallbackFunction(((EditorWindow) this).Repaint);
 }
Пример #13
0
 private void OnDisable()
 {
     OcclusionCullingWindow.ms_OcclusionCullingWindow = (OcclusionCullingWindow)null;
     EditorApplication.searchChanged -= new EditorApplication.CallbackFunction(((EditorWindow)this).Repaint);
 }
Пример #14
0
 private void OnDisable()
 {
     ms_OcclusionCullingWindow       = null;
     EditorApplication.searchChanged = (EditorApplication.CallbackFunction)Delegate.Remove(EditorApplication.searchChanged, new EditorApplication.CallbackFunction(this.Repaint));
 }
 private void OnEnable()
 {
     base.titleContent = base.GetLocalizedTitleContent();
     ms_OcclusionCullingWindow = this;
     base.autoRepaintOnSceneChange = true;
     EditorApplication.searchChanged = (EditorApplication.CallbackFunction) Delegate.Combine(EditorApplication.searchChanged, new EditorApplication.CallbackFunction(this.Repaint));
     base.Repaint();
 }
 private void OnDisable()
 {
     ms_OcclusionCullingWindow = null;
     EditorApplication.searchChanged = (EditorApplication.CallbackFunction) Delegate.Remove(EditorApplication.searchChanged, new EditorApplication.CallbackFunction(this.Repaint));
 }