Пример #1
0
        private void LoadResources()
        {
            if (!resources_loaded)
            {
                window = this;

                var path_pattern   = "Icons/{0}/{1}";
                var dynamic_folder = EditorGUIUtility.isProSkin ? "Light" : "Dark";
                var path           = string.Format(path_pattern, dynamic_folder, "TabPRO_Settings_Icon");
                var icon           = Resources.Load <Texture>(path);

                settings_content = new GUIContent(icon, "Open Preferences > Tab PRO > Settings");

                tab_menu = Resources.Load <TabMenu>("DefaultTabMenu");

                resources_loaded = true;
            }
        }
Пример #2
0
 private void OnEnable()
 {
     tab_menu = Resources.Load <TabMenu>("DefaultTabMenu");
     CreateReorderableList();
 }