public static void OpenWindow(BTree tree) { BTreeEditor treeEditor = GetWindow <BTreeEditor>(); if (treeEditor.lockTreeView == true) { treeEditor = CreateInstance <BTreeEditor>(); treeEditor.Show(); } treeEditor.titleContent = new GUIContent("Behaviour Editor"); treeEditor.treePath = AssetDatabase.GetAssetPath(tree); treeEditor.tree = null; }
public static void OpenWindow(BTree tree) { BTreeEditor treeEditor = GetWindow <BTreeEditor>(); if (treeEditor.lockTreeView == true) { treeEditor = CreateInstance <BTreeEditor>(); treeEditor.Show(); } treeEditor.titleContent = new GUIContent("Behaviour Editor"); treeEditor.treePath = AssetDatabase.GetAssetPath(tree); treeEditor.tree = null; // Debug.Log(EditorPrefs.GetFloat("Snapping Pixels")); }