Exemplo n.º 1
0
        void ResetView()
        {
            if (!File.Exists(BMSettings_Path))
            {
                BMEditUtility.CreateAsset <BMSettings>(BMSettings_Path);
            }
            settings = AssetDatabase.LoadAssetAtPath <BMSettings>(BMSettings_Path);

            titleFields = settings.GetType().GetFields();
        }
Exemplo n.º 2
0
 private void OnEnable()
 {
     _settings      = target as BMSettings;
     _newSceneStyle = new GUIStyle();
     _newSceneStyle.normal.textColor = Color.green;
     _scenesVersionDict = BMEditUtility.GetDictionaryFromFile(_settings.scenesVersionFile);
     if (_scenesVersionDict == null)
     {
         _scenesVersionDict = new Dictionary <string, string>();
     }
 }
Exemplo n.º 3
0
 public static void SaveSetting(BMSettings settings)
 {
     EditorUtility.SetDirty(settings);
     AssetDatabase.SaveAssets();
     AssetDatabase.Refresh();
 }