Unity3d behaviour designer 心得

中文教程,转载至 http://www.jianshu.com/p/64b5fe01fb1c

趁闲研究了下unity下蛮有名的行为树插件。看了半天英文文档,好在底子好,还算看下去了。就是卡在Abort type那,费解了半天。尤其是难以理解low priority。

然后百度 搜索了下,看到了这位大大翻译的中文版,顿时1w个草泥马飞过。毕竟英文还是费力点。他在Abort type处翻译的很好,也解释的很好。尤其是给出的low priority例子。

假设composite task名字为A

Self:

A下的条件均满足而执行过程中,假设任意条件不满足,则会中断。

LowPriority:

假设因为A下的条件不满足而未执行时,即使平级的其他节点在执行中,A下的条件满足时,则会中断其,执行A下的条件。

Both:

综上,则是即检测A下的条件不满足而中断,也支持条件满足时,直接执行。


interupt:

中断基本上用performInteruption 配合Interupt来实现。切记,PI的inspector面板要选择对应的interupt方可实现。步骤是打开inspector后,点击Select按钮,

左键选择行为树面板中的interupt。选择成功后,会如下图,显示绑定的interupt的名字(可以绑定多个)。参考源码可得,和task中绑定其他task的原理一致。




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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值