版本
menu_open

Overview

Wwise uses events to drive the sound, music, dialogue, and motion in-game. Events determine which sound, music, motion, or piece of dialogue is played at any particular point in the game. To accommodate as many situations as possible, there are two kinds of events:

  • “Action” events

  • Dialogue events

“Action” events contain one or more actions that are applied to the different sound, music, or motion structures within your project hierarchy. The actions you select will specify whether the Wwise objects will play, pause, stop, and so on. For example, the following event could describe a point in a game where a character leaves a windswept field to enter an eerie cave.

[Note] Note

In most cases, a Play event is paired with a Stop action event or even a Pause or Resume event. As an alternative to creating separate events for these types of actions, you can use the Wwise SDK to execute these actions on the sound. For more information, refer to Stopping, Pausing, and Resuming Sounds Programatically.

Dialogue events, on the other hand, use a type of decision tree containing state groups to dynamically determine what object is played. For more information about dialogue events, refer to Chapter 15, Managing Dynamic Dialogue.

After you create “action” events in Wwise, they can be integrated into the game engine so that they are called at the appropriate times in the game. Since the game engine uses the event name or ID, you can create the events, integrate them into the game and then build and fine-tune the contents of the event without ever having to re-integrate it into the game again. As long as the event name or ID does not change, no additional programming is required. This gives you a great deal of flexibility to experiment with different sounds or motion objects, add or remove objects, and fine-tune transitions between objects.

To help you easily identify an event in the interface, it is represented by the following icon.

Icon

Represents

Event

Using Events - Example

Let's say you are creating a fantasy role-playing game. You know that in one level of the game, the character will enter a cave from the woods. You want the ambient sounds to change at the moment the character enters the cave. At the beginning of your project, you can create an event in Wwise using temporary or placeholder sounds. The event will contain a series of actions that will stop the ambient “Woods” sounds and play the ambient “Cave” sounds. After the event is created, it can be integrated into the game so that it will be triggered at the appropriate moment. Since no additional programming is required after the initial integration, you can experiment with different sounds, add and remove actions, and change action properties until it sounds just right.

The following illustration shows the relationship between the action in-game, the event, and the sounds that are played.


此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅