Esempio n. 1
0
        static SceneInspector()
        {
            LoadSettings();
            if (Settings == null)
            {
                Settings = new SceneInspectorSettings();
            }

            ToolbarExtender.LeftToolbarGUI.Add(OnToolbarGUI);
            ToolbarExtender.RightToolbarGUI.Add(OnShortcutsGUI);
        }
Esempio n. 2
0
        static void LoadSettings()
        {
            if (Settings == null)
            {
                Settings = new SceneInspectorSettings();
            }

            var settingsKeyData = EditorPrefs.GetString(GetEditorSettingsKey());

            if (settingsKeyData == "")
            {
                SaveSettings();
            }

            JsonUtility.FromJsonOverwrite(EditorPrefs.GetString(GetEditorSettingsKey()), Settings);
            Shortcuts = new HashSet <string>(Settings.scenePaths.ToList());
        }