行为树节点参考:Services

行为树 Service 节点的参考。

Windows
MacOS
Linux
On this page

Services 附着在 Composite 节点上,只要其分支节点被执行,它们便将按所定义的频率执行。它们常用于检查和更新黑板。它们以行为树系统的形态取代了传统平行节点。

Default Focus

SetDefaultFocus.png

Default Focus 设置 AI 控制器的集中点,从而创建出访问蓝图和代码中 Actor 的快捷方式。将 AI 控制器的集中点设为 Actor 后,即可直接从 AI 控制器直接对其进行访问,而无需访问黑板键。

属性

描述

Blackboard Key

此属性接受 Actor Key(一种基础类设为 Actor 的物体键),使其可被使用 GetFocusActor 的 AI 控制器快速参考。

Node Name

行为树图表中显示的节点名称。

自从 4.4 版本开始,黑板键将接受矢量黑板键(它们不执行任何操作,因为 Set/Clear/Get Focus Actor 函数在 Actor 上起作用)。

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback