Skip to content

Commit

Permalink
Fixed Error caused by Code Refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLaFritz committed Jun 5, 2022
1 parent 72de5ef commit da31b6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Editor/BehaviorTreeEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static bool OnOpenAsset(int instanceID, int line)
private void CreateGUI()
{
//VisualTreeAsset visualTree = Resources.Load<VisualTreeAsset>("BehaviorTreeEditor.uxml");
VisualTreeAsset vt = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>("Assets/GraphViewBehaviorTree/Editor/Resources/BehaviorTreeEditor.uxml");
VisualTreeAsset vt = Resources.Load<VisualTreeAsset>("BehaviorTreeEditor");
vt.CloneTree(rootVisualElement);

m_treeView = rootVisualElement.Q<BehaviorTreeView>();
Expand Down
6 changes: 3 additions & 3 deletions Editor/Resources/BehaviorTreeEditor.uxml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
<uie:Toolbar>
<uie:ToolbarMenu display-tooltip-when-elided="true" text="Assets&#10;" />
</uie:Toolbar>
<GraphViewBehaviorTree.Editor.SplitView fixed-pane-initial-dimension="300">
<GraphViewBehaviorTree.Editor.Views.SplitView fixed-pane-initial-dimension="300">
<ui:VisualElement name="LeftPane">
<ui:Label text="Inspector" display-tooltip-when-elided="true" />
<ui:IMGUIContainer name="InspectorView" />
</ui:VisualElement>
<ui:VisualElement name="RightPane">
<ui:TextField picking-mode="Ignore" label="Behavior Tree Name" text="filler text" binding-path="m_Name" readonly="true" name="BehaviorTreeName" focusable="false" />
<uie:PropertyField label="Root Node" binding-path="rootNode" style="flex-grow: 0; height: auto;" />
<GraphViewBehaviorTree.Editor.BehaviorTreeView focusable="true" />
<GraphViewBehaviorTree.Editor.Views.BehaviorTreeView focusable="true" />
</ui:VisualElement>
</GraphViewBehaviorTree.Editor.SplitView>
</GraphViewBehaviorTree.Editor.Views.SplitView>
</ui:UXML>

0 comments on commit da31b6d

Please sign in to comment.