Unity中文教程 Ep.17 音頻管理器 播放音效 持久泛型單例 Unity如何播放音效 聲音管理器 音效管理器 - Unity 中文教程 橫版卷軸射擊遊戲 製作全過程
---- 本期視頻簡介 ----
本期視頻我們將創建音頻管理器。視頻的主要內容有:
1. 創建不會因為加載新場景而被摧毀的持久泛型單例
2. 通過腳本來實現音效播放功能
💬有任何問題請在評論中留言,我會盡力回答。
➤源代碼 - Github - https://github.com/AtCloudStudio/ShootingStarPackages/tree/master/Scripts
➤本期資源包下載 - Github: https://github.com/AtCloudStudio/ShootingStarPackages/tree/master/Packages
---- 系列視頻簡介 ----
本系列視頻將探討 Input System,對象池,物品掉落,視差背景系統等內容。
適合有一定Unity遊戲開發基礎的同學繼續深入學習。
➤本系列視頻播放列表 - https://youtube.com/playlist?list=PLrn_k3ArwNC3mgZ7fSifIsYxHguAnO1w8
---- 關於我 ----
你好啊!歡迎來到我的視頻!
我是阿嚴,一個小小的獨立遊戲開發者。
在我的視頻中,我會盡力地將我所學到的知識分享給你。
如果你覺得我的視頻對你有所幫助,
請幫我點贊並訂閱我的頻道,讓我能做出更多的視頻,謝謝😀
➤訂閱我的頻道,裏面有更多內容 - https://www.youtube.com/channel/UCSRCf2y6LV8vpKSoXDoU2VQ?sub_confirmation=1
----- 社交媒體與社區 ----
►Discord Server - https://discord.gg/ZmTgSCe4Jq
►Twitter - https://twitter.com/XuZuyan
►ArtStation - https://www.artstation.com/xuzuyan
---- 參考資料鏈接 ----
DontDestroyOnLoad - Unity Documentation - Scripting -
https://docs.unity3d.com/ScriptReference/Object.DontDestroyOnLoad.html
AudioSource - Unity Documentation - Manual -
https://docs.unity3d.com/Manual/class-AudioSource.html
AudioClip - Unity Documentation - Manual -
https://docs.unity3d.com/Manual/class-AudioClip.html
AudioClip - Unity Documentation - Scripting -
https://docs.unity3d.com/ScriptReference/AudioClip.html
AudioListener - Unity Documentation - Manual -
https://docs.unity3d.com/2020.3/Documentation/Manual/class-AudioListener.html
AudioSource.Play() - Unity Documentation - Scripting -
https://docs.unity3d.com/ScriptReference/AudioSource.Play.html
AudioSource.PlayOneShot() - Unity Documentation - Scripting -
https://docs.unity3d.com/ScriptReference/AudioSource.PlayOneShot.html
---- 章節時間戳 ----
00:00 本期視頻簡介
01:00 音頻管理器的設計
01:51 持久泛型單例
04:15 Unity播放音頻的條件
07:56 音頻管理器腳本
17:12 結語
---- 知識點時間戳 ----
03:09 DontDestroyOnLoad()
04:40 音頻接收器組件
05:52 音頻剪輯
10:24 AudioSource.Play()
10:47 AudioSource.PlayOneShot()
---- 標簽 ----
unity教程
#unity中文教程
#遊戲開發
獨立遊戲開發
橫版卷軸射擊遊戲
音頻管理器
聲音管理器
音效管理器
播放音效
播放隨機音效
播放音樂
播放環境音
持久泛型單例
泛型單例
#Unity如何播放音頻
Unity播放音頻的條件
音頻接收器組件
音頻剪輯
音源組件
DontDestroyOnLoad()
AudioSource.Play()
AudioSource.PlayOneShot()
Other Videos By RYanIndieDev
Other Statistics
Ib Statistics For RYanIndieDev
Currently, RYanIndieDev has 23,714 views for Ib across 47 videos. There's close to 13 hours worth of content for Ib published on his channel, making up less than 0.71% of the total overall content on RYanIndieDev's YouTube channel.