private static void _SaveToSettingsFile(ProjectwiseSettings instance)
        {
            var path = Path.Combine(Application.dataPath, SaveFullPath);
            var json = JsonUtility.ToJson(instance);

            // create missing directories if any
            new FileInfo(path).Directory.Create();

            File.WriteAllText(path, json);
            AssetDatabase.Refresh();
        }
Пример #2
0
 private void OnDestroy()
 {
     ProjectwiseSettings.Save();
 }