包含11節(jié)視頻教程
從零基礎(chǔ)學(xué)習(xí)unity3d游戲引擎,簡(jiǎn)單易學(xué)的視頻教程,讓你快速掌握unity3d,并喜歡上游戲開發(fā)的樂趣。
![]()
|
![]() The Audio Source plays back an Audio Clip in the scene. If the Audio Clip is a 3D clip, the source is played back at a given position and will attenuate over distance. The audio can be spread out between speakers (stereo to 7.1) (Spread) and morphed between 3D and 2D (PanLevel). This can be controlled over distance with falloff curves. Also, if the listener is within 1 or multiple Reverb Zones, reverberations is applied to the source. (PRO only) Individual filters can be applied to each audio source for an even richer audio experience. See Audio Effects for more details. 音頻源(Audio Source)在場(chǎng)景中播放音頻剪輯(Audio Clip)。如果音頻剪輯(Audio Clip)是一個(gè)3D剪輯,音頻源是在一個(gè)給定的位置,并會(huì)隨距離衰減這樣的方式進(jìn)行播放。音頻可以在揚(yáng)聲器之間傳播(立體聲至7.1)(擴(kuò)散Spread)和可以在3D和2D(平衡調(diào)整級(jí)別PanLevel)之間進(jìn)行轉(zhuǎn)換。這是可以控制的隨距離衰減曲線。此外,如果偵聽器是在1個(gè)或多個(gè)混響區(qū)中,回響將會(huì)應(yīng)用到音頻源。 (只專業(yè)版可用)單獨(dú)的過濾器可以應(yīng)用到每個(gè)音頻源,可以得到更豐富的音頻體驗(yàn)。更多細(xì)節(jié)請(qǐng)參閱音頻效果(Audio Effects)。
Properties 屬性
Types of Rolloff 衰減類型There are three Rolloff modes: Logarithmic, Linear and Custom Rolloff. The Custom Rolloff can be modified by modifying the volume distance curve as described below. If you try to modify the volume distance function when it is set to Logarithmic or Linear, the type will automatically change to Custom Rolloff. 衰減模式有三種:對(duì)數(shù),線性和自定義衰減。自定義衰減可以修改通過修改音量的距離曲線,如下所述。當(dāng)它被設(shè)置為對(duì)數(shù)或線性類型時(shí),如果你修改音量距離函數(shù),類型將自動(dòng)更改為自定義衰減。
Distance Functions 距離函數(shù)There are several properties of the audio that can be modified as a function of the distance between the audio source and the audio listener. 有音頻的幾個(gè)的屬性,作為 音頻源和音頻偵聽器之間的距離的函數(shù),可以被修改。 Volume: Amplitude(0.0 - 1.0) over distance. 音量:幅度(0.0-1.0)隨距離
音量,平衡調(diào)整,擴(kuò)散和低通音頻濾波器的距離函數(shù)。當(dāng)前到音頻監(jiān)偵聽器的距離在圖中標(biāo)記。 To modify the distance functions, you can edit the curves directly. For more information, see the guide to Editing Curves. 要修改的距離函數(shù),您可以直接編輯曲線。想了解更多信息,請(qǐng)參閱編輯曲線(Editing Curves)的指南。 Creating Audio Sources 創(chuàng)建音頻源Audio Sources don't do anything without an assigned Audio Clip. The Clip is the actual sound file that will be played back. The Source is like a controller for starting and stopping playback of that clip, and modifying other audio properties. 沒有分配音頻剪輯的音頻源不會(huì)播放任何東西。剪輯是實(shí)際的聲音文件,該文件將被播放。音頻源就像是一個(gè)控制器,用于啟動(dòng)和停止播放該剪輯,并修改其他的音頻屬性。 To create a new Audio Source 創(chuàng)建一個(gè)新的音頻源:
Note: If you want to create an audio source just for one Audio Clip that you have in the Assets folder, you can drag and drop that Audio Clip to the scene view and an Audio Source game object will be created automatically for it. 注意:如果你想創(chuàng)建一個(gè)音頻源,只需有一個(gè)音頻剪輯(Audio Clip)在你的資源文件夾,你可以拖拽音頻剪輯(Audio Clip)到場(chǎng)景視圖,那么帶有音頻源(Audio Source)的游戲?qū)ο髮⒆詣?dòng)創(chuàng)建。 Platform specific details 平臺(tái)的具體細(xì)節(jié)iOS
On mobile platforms compressed audio is encoded as MP3 for speedier decompression. Beware that this compression can remove samples at the end of the clip and potentially break a "perfect-looping" clip. Make sure the clip is right on a specific MP3 sample boundary to avoid sample clipping (Tools to perform this is widely available). For performance reasons audio clips can be played back using the Apple hardware codec. To enable this check the "Use Hardware" checkbox in the import settings. See the Audio Clip documentation for more details. 在移動(dòng)平臺(tái)上的壓縮音頻以MP3格式編碼為了能快捷解壓。要注意,這種壓縮是可以刪除剪輯結(jié)尾的樣品,并可能打破一個(gè)"完美循環(huán)"的剪輯。確保剪輯是正確的在一個(gè)特定的MP3樣品邊界,避免樣品剪裁(這是執(zhí)行它廣泛被使用的工具)。出于性能方面的原因,音頻剪輯可以使用蘋果的硬件編解碼器進(jìn)行播放。若要啟用它,選上在導(dǎo)入設(shè)置(import settings)的"使用硬件(Use Hardware)"復(fù)選框。有關(guān)詳細(xì)信息,請(qǐng)參閱音頻剪輯(Audio Clip)文件。 Android
On mobile platforms compressed audio is encoded as MP3 for speedier decompression. Beware that this compression can remove samples at the end of the clip and potentially break a "perfect-looping" clip. Make sure the clip is right on a specific MP3 sample boundary to avoid sample clipping (Tools to perform this is widely available). 在移動(dòng)平臺(tái)上的壓縮音頻以MP3格式編碼為了能快捷解壓。要注意,這種壓縮是可以刪除剪輯結(jié)尾的樣品,并可能打破一個(gè)"完美循環(huán)"的剪輯。確保剪輯是正確的在一個(gè)特定的MP3樣品邊界,避免樣品剪裁(這是執(zhí)行它廣泛被使用的工具)。 贊0 踩0 |
未知用戶
2005-2025 朱峰社區(qū) 版權(quán)所有 遼ICP備2021001865號(hào)-1
2005-2025 ZhuFeng Community All Rights Reserved
VIP