Ejemplo n.º 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;
        }
Ejemplo n.º 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"));
        }