diff --git a/Assets/Virtual Agents Framework/Editor/Scripts/Behaviour Tree.meta b/Assets/Virtual Agents Framework/Editor/Scripts/Behaviour Tree.meta deleted file mode 100644 index 6180575..0000000 --- a/Assets/Virtual Agents Framework/Editor/Scripts/Behaviour Tree.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: e4314f6a9c431bd4ab72d83a151444c0 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Virtual Agents Framework/Editor/Scripts/Behaviour Tree/BehaviourTreeEditor.cs b/Assets/Virtual Agents Framework/Editor/Scripts/Behaviour Tree/BehaviourTreeEditor.cs deleted file mode 100644 index 61b57a2..0000000 --- a/Assets/Virtual Agents Framework/Editor/Scripts/Behaviour Tree/BehaviourTreeEditor.cs +++ /dev/null @@ -1,91 +0,0 @@ -using UnityEditor; -using UnityEngine; -using UnityEngine.UIElements; -using i5.VirtualAgents; -using i5.VirtualAgents.Editor; -using i5.VirtualAgents.BehaviourTrees.Visual; - -namespace i5.VirtualAgents.Editor.BehaviourTrees -{ - /// - /// Provides a visual behaviour tree editor. - /// - public class BehaviourTreeEditor : EditorWindow - { - private BehaviourTreeView treeView; - private InspectorView inspectorView; - private Label treeViewOccludeLabel; - - [MenuItem("Virtual Agents Framework/Behaviour Tree Editor")] - public static void ShowWindow() - { - BehaviourTreeEditor window = GetWindow(); - window.titleContent = new GUIContent("Behaviour Tree Editor"); - //Set minimum window size, so that every part of the Editor can be seen - window.minSize = new Vector2(600f, 400f); - } - - public void CreateGUI() - { - //Each editor window contains a root VisualElement object - VisualElement root = rootVisualElement; - - //Import UXML. The UXML was generated by the Unity UIBuilder and contains which vsialual elements in which configuration comprise the BehaviourTreeEditor. - var visualTree = AssetDatabase.LoadAssetAtPath("Assets/Virtual Agents Framework/Editor/UI Builder/Behaviour Tree/BehaviourTreeEditor.uxml"); - visualTree.CloneTree(root); - - //A stylesheet can be added to a VisualElement. - //The style will be applied to the VisualElement and all of its children. - var styleSheet = AssetDatabase.LoadAssetAtPath("Assets/Virtual Agents Framework/Editor/UI Builder/Behaviour Tree/BehaviourTreeEditorStyleSheet.uss"); - root.styleSheets.Add(styleSheet); - - //Fetch and initialise objects from window - treeView = root.Query(); - treeView.SetupManipulators(); - treeView.SetEnabled(false); //Disable, until a tree is selected - inspectorView = root.Query(); - treeView.OnNodeSelect = OnNodeSelectionChanged; - treeViewOccludeLabel = root.Query