Unity行为树插件Behavior Designer学习笔记

深度优先遍历,从左至右。


Composites 

Sequence:&&,可以理解为同步单线程,从左到右顺序执行,一旦某个节点执行时返回失败则Sequence返回失败。 
Parallel:&&,可以理解为异步多线程,所有的子节点都会相对无顺序的同时执行,一旦某个节点执行时返回失败则会终止其他节点的执行而返回失败。 
Selector:||,顺序执行,一旦某个节点返回成功则Selector也返回成功。 
Paraller Selector:||,异步执行,一旦某个节点执行时返回成功则会终止其他节点的执行而返回成功。 
Priority Selector:||,与Selector类似,但是根据优先级执行。 
Random Selector:随机||。 
Random Sequence:随机&&。 

Selector Evaluator:将会每帧都计算最低优先级的子节点进行执行。 


Decorators 
Conditional Evaluator:判断所设置的条件,如果条件返回成功则执行它的子节点,不成功则返回失败。 
Interrupt:和Perform Interruption配合使用,可以终止Interrupt的所有子节点的运行。 
Inverter:将子节点的返回值取反。 
Repeater:重复子节点的运行。 
Return Failure:不论子节点的返回值而返回失败。 
Return Success:不论子节点的返回值而返回成功。 
Task Guard:设置子节点多久能被访问。 
Until Failure:重复执行子节点直到返回失败。 

Until Success:重复执行子节点直到返回成功。 


Actions 

最终行为的执行者,不可接子节点。 


Conditionals 

最终条件判断,不可接子节点。


总览 
这里写图片描述

局部1 
这里写图片描述

局部2 
这里写图片描述

局部3 
这里写图片描述

局部4 
这里写图片描述

局部5 
这里写图片描述

局部6 
这里写图片描述

局部7 
这里写图片描述


This extension requires one license per seat Requires Unity 4.6.0 or higher. Behavior trees are used by AAA studios to create a lifelike AI. With Behavior Designer, you can bring the power of behaviour trees to Unity! Behavior Designer is a behaviour tree implementation designed for everyone - programmers, artists, designers. Behavior Designer offers an intuitive visual editor with a powerful API allowing you to easily create new tasks. It also includes hundreds of tasks, PlayMaker integration, and extensive third party integration making it possible to create complex AIs without having to write a single line of code! Behavior Designer was designed from the ground up to be as efficient as possible with zero allocations after initialization. As a result, it runs great on all platforms including mobile. Behavior Designer is dedicated to behavior trees, which means that each update will be a better behavior tree implementation. Features: - An intuitive visual editor - A powerful API - Visual runtime debugger - Variables to communicate between tasks - Conditional Aborts - Built in event system - Unity 5 multiplayer support - Use existing code with reflection tasks - Hundreds of tasks - Evaluate tasks using Utility Theory - Realtime error detection - Binary or JSON serialization - Data-oriented design - Zero runtime allocations after startup - Object drawers (property drawers) - Includes runtime source code - Extensive documentation and videos - Sample projects available online - And more Addon Packs: - Formations Pack - Movement Pack - Tactical Pack Complete Projects: - Deathmatch AI Kit Third Party Integrations: - 2D Toolkit - A* Pathfinding Project (Movement Pack) - Adventure Creator - Anti-Cheat Toolkit - Apex Path (Movement Pack) - Blox - Camera Path Animator - Chronos - Cinema Director - Control Freak - Core GameKit - Curvy - Dialogue System - DOTween - Final IK - Glow Effect - ICode - Inventory Pro - LeanTween - Love/Hate - Master Audio - NGUI - Particl
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值