Ejemplo n.º 1
0
        public static void DisplayPreferenceGUI()
        {
            GUILayout.BeginArea(new Rect(134f, 39f, 352f, 352f));             // the rect in the preference window is bizarre...
            {
#if IS_CANDLELIGHT_SCENE_GUI_AVAILABLE
                EditorGUIX.DisplaySceneGUIToggle();
#endif
                EditorGUILayout.BeginVertical(TabAreaStyle, GUILayout.ExpandWidth(false));
                {
                    Instance.m_CurrentTab = EditorGUIX.DisplayTabGroup(
                        Instance.m_CurrentTab,
                        s_FeatureGroupLabels,
                        s_TabPages,
                        4
                        );
                }
                EditorGUILayout.EndVertical();
            }
            GUILayout.EndArea();
        }
 public static void DisplayPreferenceGUI()
 {
                 #if !UNITY_5_6_OR_NEWER
     GUILayout.BeginArea(new Rect(134f, 39f, 352f, 352f));             // the rect in the preference window is bizarre...
                 #endif
     {
         if (s_DisplaySceneGUIToggle != null)
         {
             s_DisplaySceneGUIToggle.Invoke(null, null);
         }
         UnityFeatureDefineSymbols.ShouldAutoRegisterProductSymbols = EditorGUIX.DisplayOnOffToggle(
             s_AutoSymbolLabel, UnityFeatureDefineSymbols.ShouldAutoRegisterProductSymbols
             );
         EditorGUILayout.BeginVertical(TabAreaStyle, GUILayout.ExpandWidth(false));
         {
             if (s_ProductTabIndices.Count > 0)
             {
                 int tab = 0;
                 if (!s_ProductTabIndices.ContainsKey(Instance.m_CurrentTab))
                 {
                     Instance.m_CurrentTab = s_ProductTabIndices.FirstOrDefault().Key;
                 }
                 EditorGUI.BeginChangeCheck();
                 {
                     tab = EditorGUIX.DisplayTabGroup(
                         s_ProductTabIndices[Instance.m_CurrentTab], s_ProductTabLabels, s_TabPages, 4
                         );
                 }
                 if (EditorGUI.EndChangeCheck())
                 {
                     Instance.m_CurrentTab = s_ProductTabIndices.Where(kv => kv.Value == tab).FirstOrDefault().Key;
                 }
             }
         }
         EditorGUILayout.EndVertical();
     }
                 #if !UNITY_5_6_OR_NEWER
     GUILayout.EndArea();
                 #endif
 }