5.设置黑板资源

第五步。设置黑板资源

Windows
MacOS
Linux
On this page

黑板 资源保存了一个 AI 控制器实例所需的所有数据,该 AI 控制器将被 行为树 引用。在此例中,我们将存储一个"被跟踪 Actor" (TargetToFollow)、AI 的起始位置 (HomeLocation),以及被跟踪 Actor 的最后已知位置 (TargetLocation)。

步骤

BBAsset.png

  1. 内容浏览器双击 黑板资源。

  2. 使用 New Key 按键添加一个名为 TargetToFollow对象(Object) 值。

  3. 添加一个名为 HomeLocation矢量(Vector) 值。

  4. 添加一个名为 TargetLocation矢量 值。

    finalBB.png

  5. 保存 黑板 资源。

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