예제 #1
0
 private static void PreferenceOnGUI()
 {
     EditorUIHelper.BeginChangeCheck();
     _autoGenerateLighting = EditorUIHelper.Toggle("自动烘焙", _autoGenerateLighting);
     if (EditorUIHelper.EndChangeCheck())
     {
         EditorPrefs.SetBool(AutoGenerateLighting, _autoGenerateLighting);
     }
 }
예제 #2
0
        protected override void CustomOnGUI()
        {
            EditorUIHelper.BeginChangeCheck();
            {
                _selectedIndex = EditorUIHelper.Popup("类型:", _selectedIndex, AssetImporterTypeStrs);
            }
            if (EditorUIHelper.EndChangeCheck())
            {
                ClearData();
            }

            var op = Operator;

            if (op != null)
            {
                EditorUIHelper.Space();
                EditorUIHelper.BeginHorizontal();
                {
                    _showTypeIndex = EditorUIHelper.Toolbar(_showTypeIndex, _showTypes);
                }
                EditorUIHelper.EndHorizontal();

                EditorUIHelper.Space();
                EditorUIHelper.BeginChangeCheck();
                {
                    _searchText = EditorUIHelper.SearchCancelTextField(_searchText);
                }
                if (EditorUIHelper.EndChangeCheck())
                {
                    ClearData();
                }

                EditorUIHelper.Space();
                _showTypeScroll = EditorUIHelper.BeginScrollView(_showTypeScroll);
                {
                    ShowTypePanel();
                }
                EditorUIHelper.EndScrollView();
            }
        }