Unity¤Ë´ØÏ¢¤¹¤ëµ­»ö¤Ç¤¹

¥Ü¡¼¥ë¤¬Êɤä¥Ö¥í¥Ã¥¯¤òÇ˲õ¤·¤¿ºÝ¤Ë¡¢SE¡Ê¸ú²Ì²»¡Ë¤òÌĤ餹¤è¤¦¤ËÀßÄê¤òÊѹ¹¤·¤Þ¤¹¡£

1.ÌĤ餷¤¿¤¤SE¤ò¸¡º÷¥¨¥ó¥¸¥ó¤òÍøÍѤ·¤Æ̵ÎÁÁǺà¤òõ¤·¤Æ¡¢PC¤ËÊݸ¤·¤Þ¤¹¡£


¡¡Google¤Î¸¡º÷¤Ç¡ÖSE ¥²¡¼¥à ̵ÎÁ¡×¤È¸¡º÷¤¹¤ë¤È¡¢¿§¡¹¤Ê̵ÎÁ¥µ¥¤¥È¤«¤é¥À¥¦¥ó¥í¡¼¥É¤¬²Äǽ¤Ç¤¹¡£
¡¡²»¸»¥Õ¥¡¥¤¥ë¤Ïmp3¤«wave¤Ë¤ÆÊݸ¤·¤Æ¤¯¤À¤µ¤¤¡£

2.²»¸»¥Õ¥¡¥¤¥ë¤òUnity¤Ë¥¤¥ó¥Ý¡¼¥È¡ÊÄɲáˤ·¤Þ¤¹¡£


¡¡¥¤¥ó¥Ý¡¼¥È¤·¤¿¤¤²»¸»¥Õ¥¡¥¤¥ë¤òÁª¤ó¤ÇUnity¤ÎAssets¥Õ¥©¥ë¥ÀÆâ¤Ë¥É¥é¥Ã¥°¡õ¥É¥í¥Ã¥×¤·¤Þ¤¹¡£
¡¡¤³¤ì¤Ç¥¤¥ó¥Ý¡¼¥È¤µ¤ì¤Þ¤¹¡£

3.¥¤¥ó¥Ý¡¼¥È¤µ¤ì¤¿²»¸»¥Õ¥¡¥¤¥ë¤ò£±¤Ä¤Î¥Õ¥©¥ë¥À¤Ë¤Þ¤È¤á¤Þ¤¹¡£


¡¡Assetes¥Õ¥©¥ë¥ÀÆâ¤Ç¥Þ¥¦¥¹¤Î±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æcreate -> forder¤òÁªÂò¤·¡¢¿·µ¬¥Õ¥©¥ë¥À¤òºîÀ®¤·¤Þ¤¹¡£
¡¡Ì¾Á°¤ò¡ÖSE¡×¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£Unity¸ø¼°¤Î¾ì¹ç¤Ë¤Ï¡ÖSound¡×¥Õ¥©¥ë¥À¤¬ºîÀ®¤µ¤ì¤Æ¤¤¤ë¤È»×¤¤¤Þ¤¹¡£

4.¿·¤·¤¤¥¹¥¯¥ê¥×¥È¡ÖHitPlaySound¡×¤òºîÀ®¤·¤Þ¤¹¡£


¡¡Assetes -> Script ¥Õ¥©¥ë¥ÀÆâ¤Ç±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¡¢create -> C# script¤òÁªÂò¤·¤Þ¤¹¡£
¡¡¥½¡¼¥¹¥³¡¼¥É¤Ï²¼µ­¤ÎÄ̤ê¤Ç¤¹¡£

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class HitPlaySound : MonoBehaviour {

    public AudioClip sound;

    void OnCollisionEnter(Collision collision) {
        AudioSource.PlayClipAtPoint(sound, transform.position);
    }
}
¢¨¡¡PlayClipAtPoint()¤Ï¡¢¥á¥½¥Ã¥É¤Ç¤¹¡£
¤³¤Î¥á¥½¥Ã¥É¤Ï¡¢ÌĤ餷¤¿¤¤¥ª¡¼¥Ç¥£¥ª¥¯¥ê¥Ã¥×¤ÈºÂɸ¤ò°ú¿ô¤Ë»ØÄꤹ¤ë¤È¡¢»ØÄꤷ¤¿¾ì½ê¤Ë¿·¤·¤¯°ì»þ¥ª¥Ö¥¸¥§¥¯¥È¤òÀ¸À®¤·¡¢²»¤òÌĤ餷¤Æ¤¯¤ì¤Þ¤¹¡£
¤³¤Î¥á¥½¥Ã¥É¤Ë¤è¤Ã¤Æ°ì»þÀ¸À®¤µ¤ì¤¿¥ª¥Ö¥¸¥§¥¯¥È¤Ï¼«Æ°Åª¤ËÇË´þ¤µ¤ì¤Þ¤¹¡£

5.SEÌĤ餷¤¿¤¤¥ª¥Ö¥¸¥§¥¯¥È¤ËÀè¤Û¤ÉºîÀ®¤·¤¿¥¹¥¯¥ê¥×¥È¡ÖHitPlaySound.cs¡×¤ò¥¢¥¿¥Ã¥Á¤·¤Þ¤¹¡£


¡¡Êɤξì¹ç¤Ë¤Ï¡¢¥Ò¥¨¥é¥ë¥­¡¼¤ÇÊɤòÁªÂò¤·¤Þ¤¹¡£¤½¤Î¾õÂÖ¤ÇHitPlaySound¤ò¥É¥é¥Ã¥°¡õ¥É¥í¥Ã¥×¤·¤Æ¥¢¥µ¥¤¥ó¤µ¤»¤Þ¤¹¡£

¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤Ç¥¹¥¯¥ê¥×¥È¤ò³Îǧ¤¹¤ë¤È¡ÖSound¡×¤È¤¤¤¦¹àÌܤ¬¤¢¤ê¡¢³°Éô¤è¤ê²»¸»¤ò¥¢¥µ¥¤¥ó¤¹¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Î¤Ç
¡¡¤³¤³¤Ë¹¥¤­¤Ê²»¸»¤òAssets => Sounds ¥Õ¥©¥ë¥ÀÆâ¤è¤êÁªÂò¤·¡¢¥É¥é¥Ã¥°¡õ¥É¥í¥Ã¥×¤·¤Þ¤¹¡£
¡¡¤³¤ì¤ÇÊɤ˥ܡ¼¥ë¤¬Åö¤¿¤ë¤ÈSE¤¬ºÆÀ¸¤µ¤ì¤Þ¤¹¡£

6.¥×¥ì¥¤¥ä¡¼¤Î¥é¥±¥Ã¥È¤ä¡¢²èÌ̲¼Éô¤ÎÊÉ¡ÊGameOverÍѡˤˤâƱÍͤ˥¹¥¯¥ê¥×¥È¤ò¥¢¥¿¥Ã¥Á¤·¤Æ¡¢²»¸»¤ò¥¢¥µ¥¤¥ó¤·¤Þ¤¹¡£

7.¥Ö¥í¥Ã¥¯¤ÏPrefab¥Õ¥©¥ë¥ÀÆâ¤ÎBlock¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤Æ¡¢¤½¤Á¤é¤Ë¥¹¥¯¥ê¥×¥È¤ò¥¢¥¿¥Ã¥Á¤·¤Æ¡¢²»¸»¤ò¥¢¥µ¥¤¥ó¤·¤Þ¤¹¡£

8.¥²¡¼¥à¤ò¼Â¹Ô¤·¤Æ¡¢ÂоݤȤʤ륪¥Ö¥¸¥§¥¯¥È¤Ë¥Ü¡¼¥ë¤¬ÀÜ¿¨¤·¤¿¤È¤­¤ËSE¤¬ºÆÀ¸¤¹¤ì¤Ð´°Î»¤Ç¤¹¡£

¥³¥á¥ó¥È¤ò¤«¤¯


¡Öhttp://¡×¤ò´Þ¤àÅê¹Æ¤Ï¶Ø»ß¤µ¤ì¤Æ¤¤¤Þ¤¹¡£

ÍøÍѵ¬Ìó¤ò¤´³Îǧ¤Î¤¦¤¨¤´µ­Æþ²¼¤µ¤¤

Menu


´ðÁÃ

µ»½Ñ/Ãμ±(¼ÂÁõÎã)

3D¥¢¥¯¥·¥ç¥ó¥²¡¼¥à

2D¤ª¤Ï¤¸¤­¥²¡¼¥à(ȯŸÊÔ)

2D¶¯À©²£¥¹¥¯¥í¡¼¥ë¥¢¥¯¥·¥ç¥ó(ȯŸÊÔ)

2D¥¿¥Ã¥×¥·¥å¡¼¥Æ¥£¥ó¥°(³ÈÄ¥ÊÔ)

¥ì¡¼¥¹¥²¡¼¥à(È´¿è)

2DÊüÃÖ¥²¡¼¥à(ȯŸÊÔ)

3D¥ì¡¼¥ë¥¬¥ó¥·¥å¡¼¥Æ¥£¥ó¥°(±þÍÑÊÔ)

3Dæ½Ð¥²¡¼¥à(È´¿è)

2D¥ê¥¢¥ë¥¿¥¤¥à¥¹¥È¥é¥Æ¥¸¡¼

3D¥¿¥Ã¥×¥¢¥¯¥·¥ç¥ó(NavMeshAgent »ÈÍÑ)

2D¥È¥Ã¥×¥Ó¥å¡¼¥¢¥¯¥·¥ç¥ó(¥«¥¨¥ë¤Î°Ù¤Ë¡Á¡¢¥Ü¥³¥¹¥«¥¦¥©¡¼¥ºÉ÷)

VideoPlayer ¥¤¥Ù¥ó¥ÈϢư¤Î¼ÂÁõÎã

VideoPlayer ¥ê¥¹¥ÈÆ⤫¤é¥à¡¼¥Ó¡¼ºÆÀ¸¤Î¼ÂÁõÎã(ȯŸ)

AR ²èÁüÉÕ¤­¥ª¥Ö¥¸¥§¥¯¥ÈÀ¸À®¤Î¼ÂÁõÎã

AR ¥ê¥¹¥ÈÆ⤫¤éÀ¸À®¤Î¼ÂÁõÎã(ȯŸ)

2D¥È¥Ã¥×¥Ó¥å¡¼¥¢¥¯¥·¥ç¥ó(¥µ¥Ð¥¤¥Ð¡¼É÷)

private



¤³¤Î¥µ¥¤¥ÈÆâ¤ÎºîÉʤϥæ¥Ë¥Æ¥£¤Á¤ã¤ó¥é¥¤¥»¥ó¥¹¾ò¹à¤Î¸µ¤ËÄ󶡤µ¤ì¤Æ¤¤¤Þ¤¹¡£

´ÉÍý¿Í/Éû´ÉÍý¿Í¤Î¤ßÊÔ½¸¤Ç¤­¤Þ¤¹