版本
menu

Defining the Scope of an Event Action

When creating an event, you must define the scope for each action. The scope specifies the extent to which the action is applied to objects within the game. The scope can either be applied globally to all game objects or the specific game object that triggered the event. For some actions, you can choose the scope, and for other actions, the scope is pre-determined.

For example, let's say you created an event for when the player leaves the game to enter the menu. This event will play the “Enter_Menu” sound, decrease the volume of the music bus by -10 db, and pause everything else. The following illustration demonstrates how this event would look in Wwise.

The scope for each of these event actions would be as follows:

Event Action

Scope

Comments

Play > Menu_Enter

Game Object

The scope is set to Game Object because play events are always triggered by a single game object.

Set Volume > Music

Global

The scope is set to Global because the Set Volume action is applied to a bus, which, by its very nature, is global.

Pause All Except > Music

Global

The scope is automatically set to Global because the Pause All Except action is applied to the music bus, which, by its very nature, is global.

Pause All Except > Menu

Global

The scope is automatically set to Global because the Pause All Except action is applied to the menu bus, which, by its very nature, is global.

As you can see in the previous example, if you use one of the “Except” actions, you must define the scope for each object in the exceptions list.

To define the scope of an event:

  1. From the Scope list, select one of the following options:

    Game object to apply the event action to the game object that triggered the event.

    Global to apply the event action to all game objects.


此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅