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

¡¡¤³¤Î¼ê½ç¤Ï¥¹¥Þ¥ÛÍѤΥ¸¥ç¥¤¥¹¥Æ¥£¥Ã¥¯¤òÄɲ䷤ơ¢¥¹¥Þ¥Û¤Ç¥²¡¼¥à¤òÍ·¤Ù¤ë¤è¤¦¤Ëµ¡Ç½¤ò¼ÂÁõ¤·¤Æ¤¤¤­¤Þ¤¹¡£

¡¡º£²ó¤Î¼ÂÁõ¤Ç¤Ï¡¢²èÌ̤κ¸È¾Ê¬¤Ï¤É¤ÎÉôʬ¤Ç¤¢¤Ã¤Æ¤â¥¹¥ï¥¤¥×¤¹¤ë¤È¥¸¥ç¥¤¥¹¥Æ¥£¥Ã¥¯¤¬É½¼¨¤µ¤ì¤Æ¡¢¥­¥ã¥é¤Î°ÜÆ°¤¬¹Ô¤¨¤ë¤è¤¦¤Ë¤·¤Æ¤¤¤Þ¤¹¡£
¤³¤Î¥¸¥ç¥¤¥¹¥Æ¥£¥Ã¥¯¤Ï²èÌ̤ò¥¹¥ï¥¤¥×¤·¤¿¤È¤­¤À¤±²èÌ̾å¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£


¡ã¼ÂÁõ²èÁü¡ä



¡¡°Ê²¼¤ÎÆâÍƤǽçÈ֤˼ÂÁõ¤ò¿Ê¤á¤Æ¤¤¤­¤Þ¤¹¡£

ȯŸ£´¡¡¡¼¥¹¥Þ¥Û¤Ç¤Î¥×¥ì¥¤¥ä¡¼¤ÎÀ©¸æµ¡Ç½¤Î¼ÂÁõ¡¼
¡¡£¶¡¥Joystick Pack¥¢¥»¥Ã¥È¤òUnity¤Ë¥¤¥ó¥Ý¡¼¥È¤·¤Æ¡¢CanvasÆâ¤Ë¥¸¥ç¥¤¥¹¥Æ¥£¥Ã¥¯¤òÀßÃÖ¤¹¤ë
¡¡£·¡¥¥¸¥ç¥¤¥¹¥Æ¥£¥Ã¥¯¤È³Æ¥Ü¥¿¥ó¤ò¥×¥í¥°¥é¥à¤ÈÏ¢·È¤·¤ÆÁàºî¤Ç¤­¤ë¤è¤¦¤Ë¤¹¤ë



¡¡¿·¤·¤¤³Ø½¬ÆâÍƤϡ¢°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£

¡¡¡¦Joystick Pack



£¶¡¥Joystick Pack¥¢¥»¥Ã¥È¤òUnity¤Ë¥¤¥ó¥Ý¡¼¥È¤·¤Æ¡¢CanvasÆâ¤Ë¥¸¥ç¥¤¥¹¥Æ¥£¥Ã¥¯¤òÀßÃÖ¤¹¤ë

£±¡¥Àß·×


¡¡¥¹¥Þ¥Û¤Ë¤Ï¥­¡¼¥Ü¡¼¥É¤¬¤¢¤ê¤Þ¤»¤ó¤Î¤Ç¡¢¤½¤Î¤Þ¤Þ¤Î¥×¥í¥°¥é¥à¤Ç¤Ï¥²¡¼¥à¤ò¥¹¥Þ¥Û¾å¤ÇÁàºî¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤»¤ó¡£
Í·¤Ö¤¿¤á¤Ë¤Ï¥×¥í¥°¥é¥à¤ÎÊѹ¹¡¦Äɲäȡ¢¥­¡¼¥Ü¡¼¥É¤ÎÂå¤ï¤ê¤Î¥­¡¼ÆþÎϤÎÁõÃÖ¤¬É¬Íפˤʤê¤Þ¤¹¤¬¡¢
¥­¡¼ÆþÎϤˤĤ¤¤Æ¤Ï¡¢ÌµÎÁ¥¢¥»¥Ã¥È¤Ç¤¢¤ë Joystick Pack ¤òÍøÍѤ¹¤ë¤È¼ÂÁõ½ÐÍè¤Þ¤¹¡£

¡¡Joystick Pack ¤Ë¤ÏÊ£¿ô¤Î¥¹¥Þ¥ÛüËöÍѤΠJoystick ¤¬¥×¥ì¥Õ¥¡¥Ö¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤ÆÅÐÏ¿¤µ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç
¥²¡¼¥à¤ÎÆÃÀ­¤Ë¤¢¤Ã¤¿¤â¤Î¤òÍøÍѤ·¤Æ¡¢¥­¡¼ÆþÎϤò¹Ô¤¨¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£

¡¡¤³¤ì¤é¤Î Joystick ·Ï¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤Ï¥¯¥é¥¹(¥¹¥¯¥ê¥×¥È)¤¬¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤ª¤ê¡¢
¤½¤Î¥¯¥é¥¹¤Ë¤Ï¥­¡¼ÆþÎϤòȽÄꤹ¤ë¤¿¤á¤ÎÊÑ¿ô¤ä¥á¥½¥Ã¥É¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢¤½¤ì¤ò PlayerController ¥¹¥¯¥ê¥×¥È¤Èɳ¤Å¤±¤Æ
¥­¡¼ÆþÎϤòȽÄê¤Ç¤­¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£

¡¡¤Þ¤º¤Ï¥¢¥»¥Ã¥È¤ò¥¤¥ó¥Ý¡¼¥È¤·¤Þ¤¹¡£


£²¡¥¥¢¥»¥Ã¥È¥¹¥È¥¢¤Ø°ÜÆ°¤¹¤ë


¡¡Unity¤Î¥á¥Ë¥å¡¼¤«¤é Window => Asset Store ¤òÁªÂò¤·¤Þ¤¹¡£AssetStore¥Ó¥å¡¼¤¬Scene¥Ó¥å¡¼¤ÎÎ٤˺î¤é¤ì¤Þ¤¹¡£
Search online ¥Ü¥¿¥ó¤ò²¡¤·¤Æ¥¢¥»¥Ã¥È¥¹¥È¥¢¤Î¥µ¥¤¥È¤Ø°ÜÆ°¤·¤Æ¤¯¤À¤µ¤¤¡£(2020.1¥Ð¡¼¥¸¥ç¥ó¤«¤é¤³¤Î¤è¤¦¤Ê·Á¼°¤ËÊѹ¹¤Ë¤Ê¤ê¤Þ¤·¤¿)

AssetStore¥Ó¥å¡¼

¡¡

£³¡¥¥¢¥»¥Ã¥È¥¹¥È¥¢¤Ç̵ÎÁ¤Î¥¨¥Õ¥§¥¯¥ÈÍÑ¥¢¥»¥Ã¥È¤ò¸¡º÷¤¹¤ë


¡¡¥¢¥»¥Ã¥È¥¹¥È¥¢¤Î¥µ¥¤¥È¾åÉô¤Ë¤¢¤ë¸¡º÷Áë¤Ë joystick ¤ÈÆþÎϤ·¤Æ¸¡º÷¤ò¹Ô¤¤¤Þ¤¹¡£

¸¡º÷



¡¡Joystick Pack ¤È¤¤¤¦ÌµÎÁ¤Î¥¨¥Õ¥§¥¯¥ÈÍÑ¥¢¥»¥Ã¥È¤¬¸«¤Ä¤«¤ê¤Þ¤¹¤Î¤Ç¡¢¤³¤Á¤é¤ò¥¯¥ê¥Ã¥¯¤·¤Þ¤¹¡£

Joystick Pack



¡¡¥¯¥ê¥Ã¥¯¤¹¤ë¤È¥¢¥»¥Ã¥È¤Î¾ÜºÙ¤¬²èÌ̤Ëɽ¼¨¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢ Add To My Assets¡¢¤¢¤ë¤¤¤Ï Open in Unity ¤È¤¤¤¦¡¢ÀĤ¤¥Ü¥¿¥ó¤ò²¡¤·¤Þ¤¹¡£
(Add To My Assets ¤Î¾ì¹ç¤Ë¤Ï¡¢¥í¥°¥¤¥ó¤òÍ׵ᤵ¤ì¤Þ¤¹¡£¥í¥°¥¤¥ó¸å¡¢Æ±¤¸¥Ü¥¿¥ó¤¬Open in Unity ¤ËÊѤï¤ê¤Þ¤¹¡£)



¡¡
¡¡¼«Æ°Åª¤ËUnity¤Î¥¨¥Ç¥£¥¿¡¼²èÌ̤ËÁ«°Ü¤·¤Þ¤¹¡£¤³¤ì¤Ç¥¢¥»¥Ã¥È¥¹¥È¥¢¤Î¥µ¥¤¥È¤ÏÊĤ¸¤Æ¤·¤Þ¤Ã¤ÆÂç¾æÉפǤ¹¡£


£´¡¥¥¢¥»¥Ã¥È¤òUnity¤Ë¥¤¥ó¥Ý¡¼¥È¤¹¤ë


¡¡¥¨¥Ç¥£¥¿¡¼¤ÎPackageManager¥Ó¥å¡¼¤¬³«¤¤¤Æ¡¢ÂоݤΥ¢¥»¥Ã¥È¤¬É½¼¨¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢±¦²¼¤Ë¤¢¤ë Download ¥Ü¥¿¥ó¤ò²¡¤·¤Þ¤¹¡£
Download ¤¬½ªÎ»¤¹¤ë¤Èº¸Î٤ˤ¢¤ë Import ¤È¤¤¤¦¥Ü¥¿¥ó¤¬²¡¤»¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¤Î¤Ç¡¢¤½¤Á¤é¤ò²¡¤·¤Þ¤¹¡£


PackageManager¥Ó¥å¡¼


¡¡
¡¡¥¤¥ó¥Ý¡¼¥È¤¹¤ë¥¢¥»¥Ã¥È¤Î°ìÍ÷¤¬¥Ý¥Ã¥×¥¢¥Ã¥×¥¦¥¤¥ó¥É¥¦¤È¤·¤Æɽ¼¨¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢¤½¤Î¤Þ¤Þ±¦²¼¤Ë¤¢¤ë Import ¥Ü¥¿¥ó¤ò²¡¤·¤Þ¤¹¡£

Import³Îǧ¤Î¥Ý¥Ã¥×¥¢¥Ã¥×



¡¡ÂÔµ¡¤¹¤ë¤è¤¦¤Ë¥×¥í¥°¥ì¥¹É½¼¨¤¬½Ð¤Æ¡¢¤·¤Ð¤é¤¯¤¹¤ë¤È¥¢¥»¥Ã¥È¤Î¥¤¥ó¥Ý¡¼¥È¤¬½ªÎ»¤·¤Þ¤¹¡£


¡¡ProjectÆâ¤ò³Îǧ¤·¤Þ¤·¤ç¤¦¡£Joystick Pack ¤È¤¤¤¦¿·¤·¤¤¥Õ¥©¥ë¥À¤¬Äɲ䵤ì¤Æ¤¤¤ì¤Ð̵»ö¤Ë¥¤¥ó¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¥Õ¥©¥ë¥À¤ò½çÈ֤˳«¤¤¤Æ¤¤¤¯¤È¤¿¤¯¤µ¤ó¤Î¥Õ¥©¥ë¥À¤È¥Õ¥¡¥¤¥ë¤¬Äɲ䵤ì¤Æ¤¤¤Þ¤¹¡£¡Ê²èÁü¤ÎÀĤ¤Éôʬ¤¬º£²ó¥¤¥ó¥Ý¡¼¥È¤µ¤ì¤¿¥¢¥»¥Ã¥È¤Ç¤¹¡Ë


Joystick Pack



¡¡°Ê¾å¤Ç¥¢¥»¥Ã¥È¤Î¥¤¥ó¥Ý¡¼¥Èºî¶È¤Ï½ªÎ»¤Ç¤¹¡£


£µ¡¥FloatingJoystick ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò Canvas Æâ¤ËÀßÃÖ¤¹¤ë


¡¡¥¹¥Þ¥Û¤Ç¥­¥ã¥é¤Î°ÜÆ°¤ò¹Ô¤¦¤¿¤á¤Ë¡¢¥¤¥ó¥Ý¡¼¥È¤·¤¿ Joystick Pack ¥¢¥»¥Ã¥È¤òÍøÍѤ·¤Þ¤¹¡£

¡¡°Ê²¼¤Î¥Ñ¥¹¤Î¾ì½ê¤Ë¤¢¤ë Floating Joystick ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£

¥Ñ¥¹
Assets/Joystick Pack/Prefabs/Floating Joystick.prefab


¥Õ¥©¥ë¥À²èÁü



¡¡Floating Joystick ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥Ò¥¨¥é¥ë¥­¡¼¤Î Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤Æ¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¤¯¤À¤µ¤¤¡£
Scene¥Ó¥å¡¼¤ÈGame¥Ó¥å¡¼¤Ë´Ý·¿¤Î¥¸¥ç¥¤¥¹¥Æ¥£¥Ã¥¯¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£


¥Ò¥¨¥é¥ë¥­¡¼²èÁü



Scene¥Ó¥å¡¼²èÁü



£¶¡¥Floating Joystick ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎÀßÄê¤ò¹Ô¤¦


¡¡Floating Joystick ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎÂ礭¤µ¤òÄ´À°¤·¤Þ¤¹¡£
¤Þ¤º¤Ï¸½ºß¤ÎÂ礭¤µ¤òScene¥Ó¥å¡¼¤Ë¤Æ³Îǧ¤·¤Þ¤¹¡£º¸¾å¤Î¥á¥Ë¥å¡¼¥Ü¥¿¥ó¤Î Rect Tool ¤òÁªÂò¤·¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£

¡¡¤³¤Î Rect Tool ¤Ç¸«¤¨¤ëÀĤ¤»Í³Ñ¤¤ÈϰϤ¬¡¢¤³¤Î Floating Joystick ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¥µ¥¤¥º¤Ç¤¹¡£
¤³¤ì¤Ï¤½¤Î¤Þ¤Þ¡¢¥¸¥ç¥¤¥¹¥Æ¥£¥Ã¥¯¤¬É½¼¨¤µ¤ì¤Æ¡¢¥¹¥ï¥¤¥×¤ò´¶ÃΤ·¤Æ¤¯¤ì¤ëÈϰϤˤâ¤Ê¤ê¤Þ¤¹¡£
²¼µ­¤Î²èÁü¤Î¤è¤¦¤Ë¡¢²èÌ̤κ¸È¾Ê¬¤òʤ¤¦¤è¤¦¤Ë¥µ¥¤¥º¤òÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£


¥µ¥¤¥ºÊѹ¹¸å¤ÎScene¥Ó¥å¡¼²èÁü



¡¡ÀßÄ꤬½ªÎ»¤·¤¿¤é¡¢Canvas Renderer ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î Cull Transparent Mesh ¤Î¥Á¥§¥Ã¥¯¤ò¥ª¥ó¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£


Floating Joystick ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü(¤³¤ì¤Ï²èÌ̤βòÁüÅ٤ˤè¤Ã¤ÆWidth¤ÈHeight¤ÎÃͤ¬¤½¤ì¤¾¤ì°Û¤Ê¤ê¤Þ¤¹¤Î¤Ç»²¹ÍÄøÅ٤ˤ·¤Æ¤¯¤À¤µ¤¤)



¡¡°Ê¾å¤ÇÀßÄê¤Ï´°Î»¤Ç¤¹¡£
¡¡Â³¤¤¤Æ¡¢Floating Joystick ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤ÎÀßÄê¤ò³Îǧ¤·¤Þ¤¹¡£


£·¡¥Floating Joystick ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È(Background ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È / Handle ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È)ÀßÄê¤ò¹Ô¤¦


¡¡Floating¡¡Joystick ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤Ï»Ò¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤¢¤ë Background ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤È¡¢
¤µ¤é¤Ë¤½¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤¢¤ë Handle ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¤½¤Á¤é¤ò½çÈÖ¤ËÀßÄꤷ¤Þ¤¹¡£



¡¡Background ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ï¡¢Canvas Renderer ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î Cull Transparent Mesh ¤Î¥Á¥§¥Ã¥¯¤ò¥ª¥ó¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£¡¡
¾¤ËÊѹ¹²Õ½ê¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤â¤·¤â¥¸¥ç¥¤¥¹¥Æ¥£¥Ã¥¯¤ÎÇطʲèÁü¤òÊѹ¹¤·¤¿¤¤¾ì¹ç¤Ë¤Ï¡¢Image ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î²èÁü¤òÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£


Background ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥Ò¥¨¥é¥ë¥­¡¼²èÁü



Scene¥Ó¥å¡¼²èÁü





¡¡Handle ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤âƱÍͤˡ¢Canvas Renderer ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î Cull Transparent Mesh ¤Î¥Á¥§¥Ã¥¯¤ò¥ª¥ó¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£¡¡
¤³¤Á¤é¤â¾¤ËÊѹ¹²Õ½ê¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤â¤·¤â¥¸¥ç¥¤¥¹¥Æ¥£¥Ã¥¯¤Î²èÁü¤òÊѹ¹¤·¤¿¤¤¾ì¹ç¤Ë¤Ï¡¢Image ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î²èÁü¤òÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£


Handle ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü



Scene¥Ó¥å¡¼²èÁü



¡¡°Ê¾å¤Ç¥¸¥ç¥¤¥¹¥Æ¥£¥Ã¥¯¤ÎÀßÄê¤Ï´°Î»¤Ç¤¹¡£


£·¡¥¥¸¥ç¥¤¥¹¥Æ¥£¥Ã¥¯¤È³Æ¥Ü¥¿¥ó¤ò¥×¥í¥°¥é¥à¤ÈÏ¢·È¤·¤ÆÁàºî¤Ç¤­¤ë¤è¤¦¤Ë¤¹¤ë

£±¡¥Àß·×


¡¡Canvas Æâ¤Ë Floating Joystick ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÀßÃÖ¤·¤Þ¤·¤¿¤Î¤Ç¡¢¤³¤Á¤é¤òÁàºî¤·¤¿ºÝ¤Ë¡¢¤½¤Î¾ðÊó¤ò¼õ¤±¼è¤Ã¤Æ
¥­¥ã¥é¤Î°ÜÆ°¤ËÈ¿±Ç¤Ç¤­¤ë¤è¤¦¤Ë¡¢PlayerController ¥¹¥¯¥ê¥×¥È¤Ë½èÍý¤òÄɲ䷤Ƥ¤¤­¤Þ¤¹¡£

¡¡Joystick ¤Ç¥¹¥ï¥¤¥×Áàºî¤ò¤·¤Æ¾å²¼º¸±¦¤ÎÆþÎϤò¹Ô¤¦
¡¡¡¡¡¡¡¡¢­
¡¡Floating Joystick ¥¹¥¯¥ê¥×¥È¤Ë¤è¤Ã¤Æ¡¢¾å²¼Êý¸þ¤Î¾ðÊó¤È¡¢º¸±¦Êý¸þ¤Î¾ðÊó¤¬ÊÑ¿ô¤ËÂåÆþ¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢¤½¤Á¤é¤ò»²¾È¤¹¤ë
¡¡¡¡¡¡¡¡¢­
¡¡»²¾È¤·¤¿Ãͤò¥­¥ã¥é¤Î°ÜÆ°Êý¸þ¤ËŬÍѤ·¤Æ¡¢¥¹¥ï¥¤¥×Áàºî¤Ë¤è¤ë¥­¥ã¥é¤Î°ÜÆ°À©¸æ¤ò¹Ô¤¦

¡¡¾åµ­¤Îή¤ì¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡
¡¡Floating Joystick ¥¹¥¯¥ê¥×¥È¤Ë¤Ï Horizontal ÊÑ¿ô¤È Vertical ÊÑ¿ô¤¬ÍÑ°Õ¤µ¤ì¤Æ¤ª¤ê¡¢
¤³¤Á¤é¤ò»²¾È¤¹¤ë¤È²èÌ̤Υ¹¥ï¥¤¥×Î̤ò float ·¿¤Î -1.0f ¡Á 1.0f ¤Î´Ö¤Ç¼èÆÀ½ÐÍè¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£


£²¡¥PlayerController ¥¹¥¯¥ê¥×¥È¤ò½¤Àµ¤¹¤ë


¡¡Àë¸À¥Õ¥£¡¼¥ë¥É¤Ë¤Ï¡¢Àè¤Û¤ÉºîÀ®¤·¤¿¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î°ÌÃÖ¾ðÊó¤ò»²¾È¤Ç¤­¤ë¤è¤¦¤Ë
SerializeField°À­¤Ç Transform ·¿¤ÎÊÑ¿ô¤ò£²¤ÄÍÑ°Õ¤·¤Þ¤¹¡£¤¹¤Ç¤Ë¤ªµ¤¤Å¤­¤«¤È»×¤¤¤Þ¤¹¤¬¡¢ÊÑ¿ô̾¤È¥ª¥Ö¥¸¥§¥¯¥È̾¤È¤òÂçÂιç¤ï¤»¤Æ¤¢¤ë¤Î¤Ï
¥¢¥µ¥¤¥ó»þ¤Ë¤É¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥¢¥µ¥¤¥ó¤¹¤ë¤Ù¤­¤«¡¢¤ï¤«¤ê¤ä¤¹¤¯¤·¡¢¤Þ¤¿Ëü¤¬°ì´Ö°ã¤¨¤Æ¤¤¤¿¾ì¹ç¤Ëµ¤¤Å¤­¤ä¤¹¤¯¤¹¤ë¤¿¤á¤Ç¤¹¡£
¤³¤ì¤â¥¹¥¯¥ê¥×¥È¤Î²ÄÆÉÀ­¤Ë´Ø¤ï¤ëÉôʬ¤Ç¤¹¤Î¤Ç¡¢ÊÑ¿ô̾¤Ë¤â¤ï¤«¤ê¤ä¤¹¤¯¡¢¿ä»¡¤·¤ä¤¹¤¤Ì¾Á°¤òÉÕ¤±¤ë¤è¤¦¤Ë¿´¤¬¤±¤Æ¤¯¤À¤µ¤¤¡£

PlayerController.cs

¡¡<=¡¡¥¯¥ê¥Ã¥¯¤¹¤ë¤È³«¤­¤Þ¤¹¡£



¡¡¥¹¥¯¥ê¥×¥È¤ò½¤Àµ¤·¤¿¤é¥»¡¼¥Ö¤ò¹Ô¤¤¡¢PlayerController ¥¹¥¯¥ê¥×¥È¤¬¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë Penguin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤ò³Îǧ¤·¤Þ¤¹¡£
¿·¤·¤¯ SerializeField°À­¤ÇÀë¸À¤·¤¿ JoyStick ÊÑ¿ô¤¬É½¼¨¤µ¤ì¤Æ¤¤¤ì¤ÐÌäÂꤢ¤ê¤Þ¤»¤ó¡£

Penguin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü



£³¡¥Penguin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î PlayerController ¥¹¥¯¥ê¥×¥È¤Î¥¢¥µ¥¤¥ó¾ðÊó¤Ë¡¢Joystick ·¿¤Î¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÅÐÏ¿¤¹¤ë


¡¡Floating Joystick ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë Floating Joystick ¥¹¥¯¥ê¥×¥È¤ò¥¢¥µ¥¤¥ó¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢
¤³¤Á¤é¤ò¥Ò¥¨¥é¥ë¥­¡¼¤è¤ê¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤ÆÅÐÏ¿¤·¤Þ¤¹¡£


Penguin ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü



£´¡¥¥²¡¼¥à¤ò¼Â¹Ô¤·¤ÆÆ°ºî¤ò³Îǧ¤¹¤ë


¡¡¥²¡¼¥à¤ò¼Â¹Ô¤·¤Æ¡¢¥¸¥ç¥¤¥¹¥Æ¥£¥Ã¥¯¤òÁàºî¤·¤Æ¤ß¤Þ¤·¤ç¤¦¡£
¤Þ¤º¡¢Unity ¥¨¥Ç¥£¥¿¡¼¾å¤Ç¤Ï¥¸¥ç¥¤¥¹¥Æ¥£¥Ã¥¯¤òÆ°¤«¤·¤Æ¤â¥Ú¥ó¥®¥ó¤¬Æ°¤«¤Ê¤±¤ì¤ÐÀ©¸æÀ®¸ù¤Ç¤¹¡£
¥¨¥Ç¥£¥¿¡¼¤Î¾ì¹ç¤Ï¡¢¾å²¼º¸±¦¤Ë¤è¤Ã¤Æ¤Î¤ß¡¢°ÜÆ°¡¢²Ã®¡¢Ää»ß¤Î½èÍý¤¬À©¸æ¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£

¡¡ÌäÂê¤Ê¤±¤ì¤Ð¥¹¥Þ¥ÛÍѤ˥ӥë¥É¤ò¹Ô¤Ã¤Æ¡¢¼Âµ¡¾å¤Ç¤â³Îǧ¤ò¤·¤Æ¤¯¤À¤µ¤¤¡£

¡¡¥¹¥ï¥¤¥×¤ÈƱ¤¸Áàºî¤ò¼Â¹Ô¤Ç¤­¤Þ¤¹¤Î¤Ç¡¢¤Þ¤º¤Ï¤½¤Á¤é¤Ç³Îǧ¤ò¹Ô¤¤¤Þ¤¹¡£¥¹¥ï¥¤¥×¤·¤¿¤È¤­¤À¤±¥¸¥ç¥¤¥¹¥Æ¥£¥Ã¥¯¤¬É½¼¨¤µ¤ì¤Æ¡¢
¥É¥é¥Ã¥°¤Ë¹ç¤ï¤»¤Æ¥¸¥ç¥¤¥¹¥Æ¥£¥Ã¥¯¤¬Æ°ºî¤·¡¢¥­¥ã¥é¤â¤½¤Á¤é¤ÎÊý¸þ¤Ë°ÜÆ°¤¹¤ì¤ÐÀ©¸æÀ®¸ù¤Ç¤¹¡£¾å²¼¤â»î¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£



¡¡°Ê¾å¤Ç¤³¤Î¼ê½ç¤Ï½ªÎ»¤Ç¤¹¡£

¡¡=>¡¡¼¡¤Ï¡¡È¯Å¸£µ¡¡¡Ý¥¹¥Þ¥Û¤Ç¤Î¥¸¥ã¥ó¥×¤ÎÀ©¸æµ¡Ç½¤Î¼ÂÁõ¡Ý¡¡¤Ç¤¹¡£

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


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

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

Menu


´ðÁÃ

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

private



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

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