[Unity橫版卷軸射擊遊戲製作教程] Ep.23.6 按鈕音效 | UI音效 | UGUI | 中文教程 | 阿嚴獨立遊戲開發
==== 視頻簡介 ====
本期視頻我們將實現選中和按下按鈕時播放音效的功能。
我將演示如何使用事件觸發器以及腳本代碼兩種方式來實現UI音效的播放。
本視頻是暫停菜單的第六小節。
暫停菜單第一部分:https://youtu.be/IQTd-cxYrLg
暫停菜單第二部分:https://youtu.be/nVMXBIlPTw0
暫停菜單第三部分:https://youtu.be/Odft7dveSIA
暫停菜單第四部分:https://youtu.be/4jLOJdXj0ps
暫停菜單第五部分:https://youtu.be/bxsmjsglugE
暫停菜單第六部分:https://youtu.be/BsubjaEoSlA
暫停菜單第七部分:https://youtu.be/N0SfLjP7hR0
💬有任何問題請在評論中留言,我會盡力回答。
==== 腳本源代碼 ====
https://github.com/AtCloudStudio/ShootingStarPackages/tree/master/Scripts
==== 資源包下載 ====
Github: https://github.com/AtCloudStudio/ShootingStarPackages/tree/master/Packages
==== 參考資料鏈接 ====
Event Trigger - Unity Documentation - Unity UI 1.0.0 - Manual -
https://docs.unity3d.com/Packages/com.unity.ugui@1.0/manual/script-EventTrigger.html
IPointerEnterHandler - Unity Documentation - Unity UI 1.0.0 - Manual -
https://docs.unity3d.com/Packages/com.unity.ugui@1.0/api/UnityEngine.EventSystems.IPointerEnterHandler.html
IPointerDownHandler - Unity Documentation - Unity UI 1.0.0 - Manual -
https://docs.unity3d.com/Packages/com.unity.ugui@1.0/api/UnityEngine.EventSystems.IPointerDownHandler.html
ISelectHandler - Unity Documentation - Unity UI 1.0.0 - Manual -
https://docs.unity3d.com/Packages/com.unity.ugui@1.0/api/UnityEngine.EventSystems.ISelectHandler.html
ISubmitHandler - Unity Documentation - Unity UI 1.0.0 - Manual -
https://docs.unity3d.com/Packages/com.unity.ugui@1.0/api/UnityEngine.EventSystems.ISubmitHandler.html
==== 系列視頻簡介 ====
本系列視頻將探討 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
==== 章節時間戳 ====
00:00 本期視頻簡介
00:31 按鈕音效的功能需求
01:45 事件觸發器
05:47 事件觸發器代碼版
10:57 代碼優化
13:44 片尾
==== 標簽 ====
#unity
unity教程
unity中文教程
#遊戲開發
獨立遊戲
獨立遊戲開發
橫版卷軸射擊遊戲
暫停菜單
按鈕UI
#UI音效
按鈕音效
事件觸發器
UGUI
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.