Пример #1
0
 private void OpenWT()
 {
     if (wt == null)
     {
         wt = new WorldTree(Path);
     }
 }
Пример #2
0
 private void CloseWT()
 {
     if (wt != null)
     {
         wt.Close();
     }
     wt = null;
 }
Пример #3
0
        public static void CreateWorldTreeFile()
        {
            string name = "New World Tree";
            string path = AssetDatabase.GetAssetPath(Selection.activeObject) + @"/" + name + ".WT";

            var wt = WorldTree.CreateWT(path);

            wt.Close();
            AssetDatabase.ImportAsset(path, ImportAssetOptions.ForceSynchronousImport);
        }