Unity 混音器 (Audio Mixer) 允许混合各种音频源,对音频源应用效果,以及执行母带制作 (mastering)。
此窗口显示混音器(基本上就是混音器组的树状图)。混音器组本质上是音频的混合,即一个允许您应用音量衰减和音高校正的信号链;混音器组允许您插入用于处理音频信号的效果,并允许更改效果参数。此外还有在母线之间传递结果的发送和返回机制。
混音器是一种资源。可以创建一个或多个混音器,并可在任何时间激活多个混音器。混音器始终包含一个母带组。随后可以添加其他组来定义混音器的结构。
Note: Unity WebGL doesn’t support Audio Mixers. For more information on how audio is used in WebGL, see Audio in WebGL.
需要将音频源的输出路由到混音器中的组。然后效果将应用于该信号。
可以将混音器的输出路由到场景中任何其他混音器中的任何其他组,从而能够链接场景中的多个混音器,以实现复杂路由、效果处理和快照应用。
可以将某一组中所有参数的设置作为快照捕获。如果创建了快照列表,则随后可以在游戏中切换这些快照,来营造出不同的情绪或主题。
闪避 (Ducking) 可让您根据一个组中发生的情况来更改另一个组的效果。例如,在发生其他状况时降低环境背景噪声。
可以设置不同视图。您可以禁用混音器中某些组的可见性,并将结果设置为视图。然后可以根据需要来切换不同视图。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.