示例#1
0
        public override void OnInspectorGUI()
        {
            instance = target as TextureAssetTunerConfig;

            compressFolderView.DrawGUI();

            GUILayout.Space(2f);

            DrawRegisterIgnoreFolderNameGUI(ignoreCompressFolderNameScrollView, "Ignore Compress Folders");

            GUILayout.Space(2f);

            spriteFolderView.DrawGUI();

            GUILayout.Space(2f);

            DrawRegisterIgnoreFolderNameGUI(spriteFolderNameScrollView, "Sprite FolderName");

            GUILayout.Space(2f);

            DrawRegisterIgnoreFolderNameGUI(ignoreSpriteFolderNameScrollView, "Ignore Sprite Folders");

            GUILayout.Space(2f);

            EditorLayoutTools.Title("Options");

            using (new ContentsScope())
            {
                EditorGUI.BeginChangeCheck();

                changeSettingOnImport = EditorGUILayout.Toggle("Change setting on import", changeSettingOnImport);

                if (EditorGUI.EndChangeCheck())
                {
                    TextureAssetTunerConfig.Prefs.changeSettingOnImport = changeSettingOnImport;
                }

                GUILayout.Space(3f);

                EditorGUILayout.HelpBox("When this flag is enabled, the settings will be changed at the time of import..", MessageType.Info);
            }
        }
示例#2
0
        public override void OnInspectorGUI()
        {
            instance = target as TextureAssetTunerConfig;

            compressFolderView.DrawGUI();

            GUILayout.Space(2f);

            DrawRegisterIgnoreFolderNameGUI(ignoreCompressFolderNameScrollView, "Ignore Compress FolderName");

            GUILayout.Space(2f);

            spriteFolderView.DrawGUI();

            GUILayout.Space(2f);

            DrawRegisterIgnoreFolderNameGUI(spriteFolderNameScrollView, "Sprite FolderName");

            GUILayout.Space(2f);

            DrawRegisterIgnoreFolderNameGUI(ignoreSpriteFolderNameScrollView, "Ignore Sprite FolderName");
        }