private void OpenWT() { if (wt == null) { wt = new WorldTree(Path); } }
private void CloseWT() { if (wt != null) { wt.Close(); } wt = null; }
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); }