关于行为树插件Behavior Designer的学习(三)_Conditionals条件任务

关于行为树插件Behavior Designer的学习(三)_Conditionals条件任务<20/10/2017>

     

      Conditionals条件任务是用于测试游戏的一些属性。例如,判断能否看见敌人或者判断主角是否活着。

      行为树设计师插件包含了以下的默认条件任务:

名称图标描述参数

1,Random Probability

        随机概率:根据随机值返回成功或者失败

successProbability
The chance that the task will return success.

seed
Seed the random number generator to make things easier to debug.

useSeed
Do we want to use the seed?

2,Compare Field Value比较字段值:比较指定的字段值,相等的时候返回成功

targetGameObject
The GameObject to setthe field on

componentName
The component to set the field on

fieldName
The name of the field

compareValue
The value to compare to

3,Compare Property Value比较属性值:比较指定的属性值,相等的时候返回成功

targetGameObject
The GameObject to setthe property of

componentName
The component to set the property of

propertyName
The name of the property

compareValue
The value to compare to

4,Has Received Event                                                      接收事件:当接收到指定名称的事件后返回成功eventName
The name of the event to receive
5,PhysicsHas Entered Collision
Has Entered Collision2D
Has Entered Trigger
Has Entered Trigger2D
Has Exited Collision
Has Exited Collision2D
Has Exited Trigger
Has Exited Trigger2D
包含了一些物理条件判断
  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值