menu
 
版本
2015.1.9.5624

2024.1.5.8803

2023.1.13.8732

2022.1.19.8584

2021.1.14.8108

2019.2.15.7667

2019.1.11.7296

2018.1.11.6987

2017.2.10.6745

2017.1.9.6501

2016.2.6.6153

2015.1.9.5624

menu

Overview

In addition to organizing objects in the hierarchy, Wwise also helps you streamline the organization of your sounds, music, and motion objects using switches. A switch represents each alternative that exists for a particular element in game, and is used to help manage the corresponding objects for these alternatives. The alternatives that exist for these game elements are as varied as, for example, the weapon arsenal used by the main character, or weather conditions. You would assign the alternative sounds or motion objects to a certain switch and these objects will play based on the switch that is active in the game.

The following list includes only a few of the many possible game situations or elements where switches can simplify the task of managing the alternatives at runtime:

  • Game settings for rooms, ground surfaces, indoors/outdoors - you could create switches for different ground surfaces like wood, grass, gravel, and so on.

  • Game characters - you could create switches for the dialogue when a male or female character is speaking.

  • Weather conditions - you can create switches for tempests, snow storms, gentle rain, or a sunny day.

  • Game atmospheres for evil or fairy worlds - you can create switches for the different sounds and motion associated with each world.

  • Weapons - you can create switches for the different firing patterns of firearms in your game as well as lasers and swords.

For each of these examples you would create the switch and then assign the corresponding sound, music, or motion objects. The objects that are assigned to a switch are grouped into a switch container. When an event or a game parameter value signals a change, the switch container verifies the switch and the correct object is played.

Using Switches - Example

Let's say you are creating a first person shooter game where the character can walk through a variety of different environments. Within each physical setting, you have different ground surfaces, such as concrete, grass, and dirt, which means that you will need different footstep sounds for each of these surfaces. In this case, you can create switches for the different ground surfaces and then assign the different footstep sounds to the appropriate switch. When the main character is walking on a concrete surface, the “concrete” switch will become active and its corresponding sounds will play. If the character then moves from a concrete surface to a grassy surface the “grass” switch will become active and its corresponding sounds will play.

The following illustration demonstrates how the active switch determines which footstep sound is played.


此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅