版本
menu_open

Establishing a Game Parameter

We'll start by having the programmer pass the same information from the game controlling the visual time of day as a game parameter to Wwise. Used in conjunction with a blend container that contains the ambient background and individual elements of the system, we can effectively control the ambient soundscape in time with the rest of the game.

To begin with, we'll create a new game parameter for Time_of_Day. Start by selecting the default work unit from the game syncs tab in the Project Explorer. This allows you to add a new game parameter from the Project Explorer toolbar by clicking on the game parameter icon. Alternatively, a game parameter can be created from the contextual menu for a game parameter work unit or by using shortcut keys.

Creating a game parameter from the Project Explorer toolbar

Once the game parameter has been named, the parameter range can be established in the Property Editor. We'll set up the Time_of_Day game parameter using values from 0-24, allowing for the parametrization of sounds according to a 24-hour clock with 0 representing 12 AM.

Setting the Time_of_Day game parameter values


此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅