关于行为树插件Behavior Designer的学习(一)_Action动作任务

关于行为树插件Behavior Designer的学习(一)_Action动作任务<20/10/2017>

动作任务(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


  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值