public static void Init() { SettingsData = new DataManager(); Instance = GetWindow <BehaviorTreeGraphWindow>(); Instance.titleContent = new GUIContent("Behavior Tree Visualizer (Beta)"); Instance.minSize = new Vector2(500, 500); Instance.rootVisualElement.styleSheets.Add(AssetDatabase.LoadAssetAtPath <StyleSheet>(c_StylePath)); }
public void ForceDrawingOfTree() { if (BehaviorTree == null) { $"Behavior tree is null - nothing to draw.".BTDebugLog(); } BehaviorTreeGraphWindow.DrawBehaviorTree(BehaviorTree, true); }