Beispiel #1
0
 private void OnGUI()
 {
     if (ParticleSystemWindow.s_Texts == null)
     {
         ParticleSystemWindow.s_Texts = new ParticleSystemWindow.Texts();
     }
     if (ParticleSystemWindow.s_Icons == null)
     {
         ParticleSystemWindow.s_Icons = new GUIContent[2]
         {
             EditorGUIUtility.IconContent("HorizontalSplit"),
             EditorGUIUtility.IconContent("VerticalSplit")
         }
     }
     ;
     if ((Object)this.m_Target == (Object)null && ((Object)Selection.activeGameObject != (Object)null || (Object)ParticleSystemEditorUtils.lockedParticleSystem != (Object)null))
     {
         this.InitEffectUI();
     }
     this.DoToolbarGUI();
     EditorGUI.BeginDisabledGroup(ParticleSystemEditorUtils.editorUpdateAll);
     if ((Object)this.m_Target != (Object)null && this.m_ParticleEffectUI != null)
     {
         this.m_ParticleEffectUI.OnGUI();
     }
     EditorGUI.EndDisabledGroup();
 }
Beispiel #2
0
 private void OnGUI()
 {
     if (ParticleSystemWindow.s_Texts == null)
     {
         ParticleSystemWindow.s_Texts = new ParticleSystemWindow.Texts();
     }
     if (ParticleSystemWindow.s_Icons == null)
     {
         ParticleSystemWindow.s_Icons = new GUIContent[]
         {
             EditorGUIUtility.IconContent("HorizontalSplit"),
             EditorGUIUtility.IconContent("VerticalSplit")
         };
     }
     if (this.m_Target == null && (Selection.activeGameObject != null || ParticleSystemEditorUtils.lockedParticleSystem != null))
     {
         this.InitEffectUI();
     }
     this.DoToolbarGUI();
     using (new EditorGUI.DisabledScope(ParticleSystemEditorUtils.editorUpdateAll))
     {
         if (this.m_Target != null && this.m_ParticleEffectUI != null)
         {
             this.m_ParticleEffectUI.OnGUI();
         }
     }
 }
 private void OnGUI()
 {
   if (ParticleSystemWindow.s_Texts == null)
     ParticleSystemWindow.s_Texts = new ParticleSystemWindow.Texts();
   if (ParticleSystemWindow.s_Icons == null)
     ParticleSystemWindow.s_Icons = new GUIContent[2]
     {
       EditorGUIUtility.IconContent("HorizontalSplit"),
       EditorGUIUtility.IconContent("VerticalSplit")
     };
   if ((Object) this.m_Target == (Object) null && ((Object) Selection.activeGameObject != (Object) null || (Object) ParticleSystemEditorUtils.lockedParticleSystem != (Object) null))
     this.InitEffectUI();
   this.DoToolbarGUI();
   EditorGUI.BeginDisabledGroup(ParticleSystemEditorUtils.editorUpdateAll);
   if ((Object) this.m_Target != (Object) null && this.m_ParticleEffectUI != null)
     this.m_ParticleEffectUI.OnGUI();
   EditorGUI.EndDisabledGroup();
 }