예제 #1
0
        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;
        }
예제 #2
0
        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"));
        }