5.剩余步骤:声音提示和对话

构建更复杂对话管理员系统的起点

Windows
MacOS
Linux
Prerequisite Topics

This page assumes you have prior knowledge of the following topics. Please read them before proceeding.

对更复杂的对话而言,您可能需要使用声音提示(Sound Cues)和音频组件(Audio Components)。通过音频组件可利用 On Audio Finished 委托在音频播放完毕时绑定一些功能。

然而需要考虑的是使用声音提示时无法动态修改 对话语境,因此您的蓝图或 C++ 逻辑和上例将有所不同。

如要使用 Sound Cues 播放 Dialogue Waves,可使用 Sound Cue Editor 中的 Dialogue Player 节点。

DialoguePlayerNode.png

选择 Dialogue Player 节点并查看 Details 面板。在此处可设定使用的 Dialogue Wave,以及 ContextSpeakerDirected At 条目。

DialogueNodeDetails.png

此处的蓝图逻辑范例将说明如何绑定事件在之前的音频完成播放后播放下一段对话。

AudioNextSteps.png

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