- Mastering Unity 2017 Game Development with C#(Second Edition)
- Alan Thorn
- 200字
- 2021-07-02 15:38:33
Importing audio
Let's import game audio--specifically, the music track. This should be dragged and dropped into the music folder (the music track narrow_corridors_short.ogg is included in the book's companion files). Music is an important audio asset that greatly impacts loading times, especially on mobile devices and legacy hardware. Music tracks often exceed 1 minute in duration, and they encode a lot of data. Consequently, additional configuration is usually needed for music tracks to prevent them from burdening your games:

Now, select the imported music track in the Project panel. Disable the Preload Audio Data checkbox, and then change the Load Type to Streaming. This optimizes the music loading process. It means that the music track will be loaded in segments during playback, as opposed to entirely in memory from the start of the level, and it will continually load, segment by segment. This prevents longer initial loading times:

- UNIX編程藝術(shù)
- Rust編程:入門、實戰(zhàn)與進階
- Java高并發(fā)核心編程(卷2):多線程、鎖、JMM、JUC、高并發(fā)設(shè)計模式
- 軟件架構(gòu)設(shè)計:大型網(wǎng)站技術(shù)架構(gòu)與業(yè)務(wù)架構(gòu)融合之道
- PHP 7底層設(shè)計與源碼實現(xiàn)
- iOS開發(fā)實戰(zhàn):從零基礎(chǔ)到App Store上架
- Python機器學(xué)習(xí)經(jīng)典實例
- Unity 5 for Android Essentials
- Learning JavaScript Data Structures and Algorithms
- Microsoft Dynamics AX 2012 R3 Financial Management
- C語言從入門到精通
- Mastering React
- 深入剖析Java虛擬機:源碼剖析與實例詳解(基礎(chǔ)卷)
- 零基礎(chǔ)學(xué)Python編程(少兒趣味版)
- IoT Projects with Bluetooth Low Energy