包含11節(jié)視頻教程
從零基礎(chǔ)學(xué)習(xí)unity3d游戲引擎,簡單易學(xué)的視頻教程,讓你快速掌握unity3d,并喜歡上游戲開發(fā)的樂趣。
![]()
|
![]() The Audio Listener acts as a microphone-like device. It receives input from any given Audio Source in the scene and plays sounds through the computer speakers. For most applications it makes the most sense to attach the listener to the Main Camera. If an audio listener is within the boundaries of a Reverb Zone reverberation is applied to all audible sounds in the scene. (PRO only) Furthermore, Audio Effects can be applied to the listener and it will be applied to all audible sounds in the scene. 音頻監(jiān)聽器扮演著像麥克風(fēng)這樣的設(shè)備。它接收任何在場景輸入的音頻源(Audio Source),并通過計(jì)算機(jī)的揚(yáng)聲器播放聲音。對于大多數(shù)應(yīng)用程序,經(jīng)常會(huì)把偵聽器貼在主攝像頭(Main Camera)。如果一個(gè)音頻偵聽器在混響區(qū)(Reverb Zone?)內(nèi),混響會(huì)應(yīng)用到在場景中所有能聽到的聲音。(只在專業(yè)版)此外,音頻效果(Audio Effects?),可以應(yīng)用到偵聽器,它將被應(yīng)用到場景中的所有聽得見的聲音。
Properties 屬性The Audio Listener has no properties. It simply must be added to work. It is always added to the Main Camera by default. 音頻監(jiān)聽器沒有屬性。它必須被添加才能使用。它總是默認(rèn)地添加到主照相機(jī)。 Details 詳情The Audio Listener works in conjunction with Audio Sources, allowing you to create the aural experience for your games. When the Audio Listener is attached to a GameObject in your scene, any Sources that are close enough to the Listener will be picked up and output to the computer's speakers. Each scene can only have 1 Audio Listener to work properly. 音頻偵聽器(Audio Listener)配合音頻源(Audio Sources),讓你可以為你的游戲創(chuàng)建聽覺體驗(yàn)。當(dāng)音頻監(jiān)聽器貼在場景中的一個(gè)游戲?qū)ο,任何音頻源,如果足夠接近偵聽器就會(huì)被獲取并輸出到計(jì)算機(jī)的揚(yáng)聲器。每個(gè)場景只能有1個(gè)音頻偵聽器正常工作。 If the Sources are 3D (see import settings in Audio Clip), the Listener will emulate position, velocity and orientation of the sound in the 3D world (You can tweak attenuation and 3D/2D behavior in great detail in Audio Source) . 2D will ignore any 3D processing. For example, if your character walks off a street into a night club, the night club's music should probably be 2D, while the individual voices of characters in the club should be mono with their realistic positioning being handled by Unity. 如果音頻源是3D( 見音頻剪輯(Audio Clip)中的導(dǎo)入設(shè)置(import settings)),偵聽器將模擬在3D世界聲音的位置,速度和方向(你可以調(diào)整衰減和3D/2D行為,這在音頻源(?Audio Source)有非常詳細(xì)的介紹)。?2D將忽略任何3D處理。例如,如果你的人物在街道行走,走進(jìn)夜總會(huì),夜總會(huì)的音樂也許應(yīng)該是二維的,而人物在俱樂部內(nèi)獨(dú)立的聲音,應(yīng)該是伴隨著他們真實(shí)定位的單聲道在Unity中處理。 You should attach the Audio Listener to either the Main Camera or to the GameObject that represents the player. Try both to find what suits your game best. 你應(yīng)該將音頻監(jiān)聽器貼在主相機(jī)(Main Camera)或代表玩家的游戲?qū)ο螅℅ameObject)。都試一下,找到最適合你的游戲的那種。 Hints 提示
贊0 踩0 |
未知用戶
2005-2025 朱峰社區(qū) 版權(quán)所有 遼ICP備2021001865號-1
2005-2025 ZhuFeng Community All Rights Reserved
VIP