- Hands-On Artificial Intelligence with Unreal Engine
- Francesco Sapio
- 238字
- 2021-06-24 15:23:25
Creating the Behavior Tree
Let's add a Behavior Tree by going to the Content Browser and selecting Add New > Artificial Intelligence > Behavior Tree, as shown in the following screenshot:

For now, we will call our Behavior Tree BT_MyFirstBehaviorTree. Again, here, I'm using a specific naming convention to prefix all Behavior Tree assets with BT_. Once again, please follow the naming convention, unless you have a specific reason not to.
When you open the Behavior Tree window, you will see a single node called Root, as follows:

The Root is where the execution of your Behavior Tree begins (from top to bottom and left to right). The Root itself only has one reference and that is the Blackboard, so it cannot be connected to anything else. It is the tip of the tree, and all subsequent nodes are below it.
If you drag from the Root Node, you will be able to add Composite nodes:

For this, the Behavior Tree Editor is very intuitive. You can keep dragging out from the nodes to add Composite or Tasks nodes. To add a Decorator or a Service, you can right-click on a node and select "Add Decorator..." or "Add Service...", respectively, as shown in the following screenshot:

Finally, if you click on a node, it is possible to choose its parameters in the Details Panel (the following screenshot shows an example of a Move To Node):

- Microsoft Dynamics 365 Extensions Cookbook
- Visual C++串口通信技術(shù)詳解(第2版)
- 手把手教你學(xué)C語言
- Getting Started with Gulp
- 51單片機(jī)C語言開發(fā)教程
- Spring Boot+Vue全棧開發(fā)實(shí)戰(zhàn)
- Web性能實(shí)戰(zhàn)
- Scratch·愛編程的藝術(shù)家
- Learning Bootstrap 4(Second Edition)
- 計(jì)算機(jī)組裝與維護(hù)(第二版)
- Python計(jì)算機(jī)視覺與深度學(xué)習(xí)實(shí)戰(zhàn)
- Bitcoin Essentials
- Python Django Web從入門到項(xiàng)目實(shí)戰(zhàn)(視頻版)
- 分布式系統(tǒng)架構(gòu)與開發(fā):技術(shù)原理與面試題解析
- 微信公眾平臺(tái)開發(fā)最佳實(shí)踐