版本
To give each object a unique flavor each time it is played in-game, you can apply Randomizers to many different property values in Wwise. 每次播放时,Randomizer 会从您指定的范围中随机选择一个值,从而让对象属性值每次都稍有不同。
When using Randomizers, you must do the following:
Enable/disable randomizers
Edit randomizer properties
You can apply a Randomizer to any property that has the Randomizer icon. 默认情况下,Randomizer 处于禁用状态,但可以很容易地启用它并修改属性,制造需要的效果。
启用 Randomizer 的方法如下:
对于带有 Randomizer 的属性,右键点击其文本框或滑杆。
快捷菜单将会显示。
在菜单中,选择 Enable Randomizer(启用随机化器)。
Randomizer 窗口将弹出,而文本框中的 Randomizer 图标将变成黄色。
技巧 | |
---|---|
You can also double-click the Randomizer icon to open the Randomizer view. |
Because Randomizers only create a range of values for a particular property, they only require two properties: a Min and a Max value. 它们不是绝对值,而是作为偏置值与现有属性值叠加。
编辑 Randomizer 属性的方法如下:
双击属性的 Randomizer 图标。
Randomizer 窗口将会打开。
在 Min 文本框中,为属性键入您想要的最小可能值。Min 值将作为偏置值与现有属性值叠加。
在 Max 文本框中,为属性键入您想要的最大可能值。最大值会作为偏移值作用于现有属性值。
备注 | |
---|---|
To edit the properties of a Randomizer for several objects at the same time, select several objects in the Project Explorer, right-click the selection, and select Show in Multi Editor. |
用户有必要了解 Randomizer 会如何应用于属性值。在播放声音对象时,对于每项支持 Randomizer 的属性:
声音对象及其所有上级对象的 Randomizer(如启用)都会生成一个随机值。
Randomizer 值的总和会添加到最终属性值。最终属性值包含:
对象属性值。
属性上的 RTPC。
属性上的 State。
备注 | |
---|---|
无论最终属性值以何种方式获取,都会将最终 Randomizer 值添加到最终属性值。对于 Volume 和 Pitch 属性,始终通过将多个来源叠加来获取属性值。对于 Low-pass filter 和 High-pass filter 属性,则取决于所配置的 Filter Behavior。参阅: |
下图展示了会如何计算 Voice 对象的 Volume 属性的最终 Randomzier 值。每个对象的 Volume 属性都启用了 Randomizer。最终 Randomizer 值 Rand 为 x、y 和 z 的总和。该值将添加到 Voice 对象的最终 Volume 属性。