Пример #1
0
        internal static EditingContextManagerSettings LoadProjectSettings()
        {
            EditingContextManagerSettings settings = ScriptableObject.CreateInstance <EditingContextManagerSettings>();

            if (File.Exists(settingsPath))
            {
                JsonUtility.FromJsonOverwrite(File.ReadAllText(settingsPath), settings);
            }

            return(settings);
        }
Пример #2
0
        internal static void SaveUserSettings(EditingContextManagerSettings settings)
        {
#if UNITY_EDITOR
            File.WriteAllText(userSettingsPath, JsonUtility.ToJson(settings, true));
#endif
        }