Esempio n. 1
0
 /**
  * Sync tag reference of each group and config's tag
  */
 public void SyncTagReferences(ref TodoConfig config)
 {
     foreach (TodoGroup group in _groups)
     {
         group.tag = config.GetTagByIndex(group.tag.index);
     }
 }
        private TodoConfig CreateTodoConfig()
        {
            // Create default config
            TodoConfig config = ScriptableObject.CreateInstance <TodoConfig>();

            System.IO.Directory.CreateDirectory(Application.dataPath + _todoDirectoryPath);
            AssetDatabase.CreateAsset(config, _todoConfigPath);
            GUI.changed = true;
            return(config);
        }
Esempio n. 3
0
 private static void LoadTodoConfig()
 {
     _config = AssetDatabase.LoadAssetAtPath <TodoConfig>("Assets/Editor/TodoTree/TodoConfig.asset");
 }
 private void LoadTodoConfig()
 {
     // Create a new one if config doesn't exist.
     _config = AssetDatabase.LoadAssetAtPath <TodoConfig>(_todoConfigPath) ?? CreateTodoConfig();
 }