关于行为树插件Behavior Designer的学习(一)_Action动作任务
2017-10-20 14:33
1001 查看
关于行为树插件Behavior Designer的学习(一)_Action动作任务<20/10/2017>
![](http://static.oschina.net/uploads/img/201603/07164138_O0Z7.png)
动作任务(action task)可以改变游戏对象的状态,例如,运行动画的动作任务或者射击动作任务。
行为树设计师有许多默认的动作任务:
![](http://static.oschina.net/uploads/img/201603/07164138_O0Z7.png)
动作任务(action task)可以改变游戏对象的状态,例如,运行动画的动作任务或者射击动作任务。
行为树设计师有许多默认的动作任务:
动作任务名称 | 图标 | 描述 | 参数 |
1,Behavior Tree Reference | ![]() | 引用外部行为树任务:你可以保存行为树为外部行为树,然后使用该任务引用他 | |
2,Idle | ![]() | 永久等待任务:返回一个永远运行的等待状态,需要interrputed任务或者条件终止去打断他 | |
3,Log | ![]() | 日志任务:输出日志,用于调试。 | text:输出文本 logError:错误文本 |
4,Perform Interruption | ![]() | 打断任务:立刻终止一个任务,返回成功或者失败,取决与interrput任务的值(他们两个要联用) | interruptTasks The list of tasks to interrupt. Can be any number of tasks. interruptSuccess When we interrupt the task should we return a task status of success? |
5,Restart Behavior Tree | ![]() | 重启任务:重新启动一个新任务,同时返回成功 | behavior:将要启用的行为树,如果为空启用现在的行为树 |
6,Send Event | ![]() | 发送事件任务:发送一个事件给行为树,返回成功 | targetGameObject:目标对象 eventName:要发送的事件 |
7,Start Behavior | ![]() | 开始行为树任务:重新启动一个新任务,同时返回成功 | behavior:将要启用的行为树,如果为空启用现在的行为树 |
8,Stop Behavior | ![]() | 暂停或者终止行为树任务:暂停或者终止一个行为树 | behavior:目标行为树,如果空使用目前的行为树 pauseBehavior:是暂停还是终止 |
9,Wait | ![]() | 等待任务:等待一段时间,等待结束返回成功 | waitTime:等待时间 |
10,Invoke Method | ![]() | 方法调用任务:调用指定的方法,能够存储返回值 | targetGameObject The GameObject to invoke the method on componentName The component to invoke the method on methodName The name of the method parameter1 The first parameter of the method parameter2 The second parameter of the method parameter3 The third parameter of the method parameter4 The fourth parameter of the method storeResult Store the result of the invoke call |
11,Get Field Value | ![]() | 获取字段值任务:获取指定的字段值 | targetGameObject The GameObject to get the field on componentName The component to get the field on fieldName The name of the field fieldValue The value of the field |
12,Get Property Value | ![]() | 获取属性值任务:获取指定的属性 | targetGameObject The GameObject to get the property of componentName The component to get the property of propertyName The name of the property propertyValue The value of the property |
13,Set Field Value | ![]() | 设置字段值任务:设置指定的字段值 | targetGameObject The GameObject to setthe field on componentName The component to set the field on fieldName The name of the field fieldValue The value to set |
14,Set Property Value | ![]() | 设置属性值任务:设置指定的属性值 | targetGameObject The GameObject to setthe property of componentName The component to set the property of propertyName The name of the property propertyValue The value to set |
相关文章推荐
- 关于行为树插件Behavior Designer的学习(二)_Composites复合任务
- 关于行为树插件Behavior Designer的学习(三)_Conditionals条件任务
- 关于行为树插件Behavior Designer的学习(四)_Decorators装饰任务
- unity-Behavior Designer行为树插件
- 关于解决自定义FloatingActionButton滑动行为(Behavior)只隐藏不出现的问题
- Atlas学习手记(22):使用行为增强用户界面(二):Floating Behavior
- 关于Hadoop任务的学习
- Unity Behavior Designer的学习(二)
- FCPX插件 LUUT动作包 The Luut Action Pack for Mac 已激活版 v1.0破解版
- Cocos2d-x学习笔记(15)(Action动作)
- Unity+Behavior Tree行为树 Behavior Designer 行为树任务(四)
- 【Cocos2d-X开发学习笔记】第19期:动作管理类(CCActionManager)的使用
- Atlas学习手记(23):使用行为增强用户界面(三):Hover Behavior
- 关于事件冒泡和默认行为的学习
- Unity插件之NGUI学习(6)—— 关于Widget如何添加触发事件(触发OnClick)
- 关于Hadoop任务的学习
- Cocos2d-x学习:动作Action(延时类动作)
- 学习Android广播之动作intent.getAction与对应的字符串常量(找不到动作常量时可用)
- 一步步学习SPD2010--第一章节--探索SPD2010(2)--使用SharePoint Designer完成普通任务
- MFC学习第二天心得!(关于系统队列、任务队列、消息队列)