Unity 5ã®ãªã¼ãã£ãªæ©è½ã«ã¤ãã¦ï¼ï¼ï¼é³ã®åçæ¹æ³ã¨ãªã¼ãã£ãªãããµã¼ã«ã¤ãã¦
Unity5ããUnityã®ãªã¼ãã£ãªå¨ãã«å¤§ããªå¤åãããã¾ãããä»æ¥ã¯Unity5ã®ãªã¼ãã£ãªå¨ãã®ä½¿ãæ¹ã«ã¤ãã¦ç¢ºèªãã¦ããã¾ãã
Â
大éæãªæ©è½ã®å¤æ´ç¹ã¨ãã¦ã¯ã大ä½ä¸ã®ãããªèªèã§ãã
- ãªã¼ãã£ãªã®é³æºãã°ã«ã¼ãåãã¦å¶å¾¡å¯è½ã«ãªã£ã
- ã°ã«ã¼ãã«ã¨ãã§ã¯ããè¨å®å¯è½ã«ãªã£ã
- ãã¼ã¿ã®ãã©ã¼ããããPCM/ADPCM/Vorbis/MP3ã«ãªã£ã
- é³ã®ããã¯ã°ã©ã¦ã³ãèªè¾¼ã«å¯¾å¿ãã
åºæ¬çãªä½¿ãæ¹
Unity5ã§ãåºæ¬çãªä½¿ãæ¹ã¯ã»ã¼å¤åããã¾ãããã¤ã¾ããAudioSourceã§é³ãåºãAudioListenerã§é³ãè´ãã¾ãã
ä¸ã¤å¤§ããå¤åããã£ãã®ãã2D Soundã®æ±ãã§ããUnity4ã§ã¯2D Soundã®æ å ±ã¯AudioClipå´ãæã£ã¦ããã®ã§ãããUnity5ããAudioSourceå´ãæã¤ããã«ãªãã¾ããã
ã¾ãå®å ¨ãª2D/3Dã ãã§ãªããé¨åçãª2Dã¨ãã£ããä½ã¨ãªãé³ã®åããåãããã©å¸¸ã«é³æ¥½ãèããããç¶æ³ãè¨å®å¯è½ã«ãªãã¾ããã
[Unity5] 3D Soundè¨å® | Unity | Zabaglioneã®ãããããªã
Â
é³ãåçããã«ã¯ãPlay On Awakeã使ç¨ããããAPI: AudioSource.Playã¡ã½ãããå¼ã³åºãã¾ããUIã®Eventããå¼ã³åºããã§ãã¾ãã
Unityã®æ°GUIãUGUIã®ã¤ãã³ãå¶å¾¡ã«ã¤ã㦠- ãã©ã·ã¥ã¼ã«ããã°
åçä¸ã®é³ã確èªãã
Unity5ãããããã¡ã¤ã©ã«ç¾å¨åçä¸ã®é³ã»åã³åçä¸ã®AudioSourceã確èªåºæ¥ãããã«ãªã£ãã¿ããã§ãã該å½ãªãã¸ã§ã¯ãã®æå±ããã°ã«ã¼ãããé³éçã確èªåºæ¥ãã®ã§ä¸ã ã«è¯ãããã§ãã
ãªã¼ãã£ãªãããµã¼
ãªã¼ãã£ãªãããµã¼ã¯Unity5ãã追å ãããæ©è½ã§ãããã®æ©è½ã§è¤æ°ã®AudioSourceã®ããªã¥ã¼ã ãä¸æ¬å¶å¾¡/Offã«ãããããªã¼ãã£ãªã°ã«ã¼ãã«ã¨ãã§ã¯ããä»ä¸ããã¨ãã£ãäºãå¯è½ã«ãªãã¾ããã
Audio Mixerãä½ãã«ã¯ãProjectãã©ã¦ã¶ã®Create >Audio Mixerããä½æãã¾ãã
ãªã¼ãã£ãªãããµã¼ã使ç¨ããã·ããªãªã¨ãã¦ã¯ãé³å ¨ä½ã»å¹æé³ã»BGMã»ãã¤ã¹ã®ããªã¥ã¼ã å¶å¾¡ãããããã¾ããå ¨ä½ã®é³éã調æ´ããã°å ¨ä½ãæ¸ãã¾ãããå¹æé³/BGMã¯åå¥ã«è¨å®ã§ããã¨ãã£ãæãã§ãã
Unity - ããã¥ã¢ã«: An overview of the concepts and AudioMixer
ã°ã«ã¼ã
ãããå®ç¾ããããã«ãAudioMixerã«åè¦ç´ ãã¨ã®ã°ã«ã¼ããä½æãã¾ãã
åè¦ç´ ã®ããªã¥ã¼ã ã¯ããããµã¼ã®ããªã¥ã¼ã ã®ã¨ããã§å¶å¾¡ãã¾ãã親ã®ããªã¥ã¼ã ã¯åã«å½±é¿ããã®ã§ãMasterããªã¥ã¼ã ãæä½ããã¨å ¨ä½ã®ããªã¥ã¼ã ãå¢æ¸ããåã®ããªã¥ã¼ã ãå¢æ¸ãããã¨ã対象ã®ããªã¥ã¼ã ã®ã¿å¢æ¸ãã¾ãã
åã°ã«ã¼ãã¸ã®æå±ã¯AudioSourceæ¯ã«è¡ãã¾ããAudioSourceã«ã¯outputã®é ç®ããããããã«ã°ã«ã¼ããD&Dããäºã§ãæå±ããã°ã«ã¼ããè¨å®ãã¾ãã
Unity - ããã¥ã¢ã«: AudioGroup ã¤ã³ã¹ãã¯ã¿ã¼
ã¾ãããããµã¼ã§æå®ã®ã°ã«ã¼ãã®ã¿é³ãåºã/æå®ã®ã°ã«ã¼ãã®é³ãåºããªãããã«ããçã確èªåºæ¥ã¾ãã
ã¹ãããã·ã§ãã
ã¹ãããã·ã§ããã¯ããªã¼ãã£ãªã°ã«ã¼ãã®é³éãã¨ãã§ã¯ãã®è¨å®ãä¿åãã¦ããããã¬ã³ãã»åç¾ããäºãã§ãã¾ãã
ä¸ã®ã³ã¼ãã¯ããããã©ã³ã¿ã¤ã æã«å®è¡ããã³ã¼ãã§ããSnapshot1ããSnapshot2ã¸æçµçãªãã¬ã³ããsnapshot1ã0%ãSnapshot1ã100%ã«ãªãããã«ã3ç§ããã¦ç§»è¡ãã¾ãã
ã¾ããAudioMixer.SetFloatã§æå®ã®ããªã¥ã¼ã ãè¨å®ãããã¨ãåºæ¥ãã¿ããã§ãã
 次åã¯åã°ã«ã¼ãã«è¨å®ã§ããã¨ãã§ã¯ãã«ã¤ãã¦ã§ãã
åè
[Unite 2015 TOKYO]Unity 5ãªã¼ãã£ãªæ°æ©è½ã®çé« from Unity Technologies Japan G.K. on Vimeo.
Â