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

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

¼ê½ç£¸¡¡¡¼¥­¥ã¥é¥¯¥¿¡¼¤Î¥¢¥Ë¥á¡¼¥·¥ç¥óÁ«°ÜÀßÄ꡼
£±£±¡¥Animator ¤ÎÀßÄê



£±£±¡¥

£±¡¥Àß·×


¡¡°ÜÆ°ÍѤΥ¢¥Ë¥á¤òÅÐÏ¿¤·¡¢¾ò·ï¤Ë¹ç¤ï¤»¤ÆÁ«°Ü(ÀÚ¤êÂؤ¨)¤Ç¤­¤ë¤è¤¦¤ËÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£

¡¡¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎÀßÄê¤Ë¤Ä¤¤¤Æ¤Ï±ü¤¬¿¼¤¤¤¿¤á¡¢¤³¤³¤Ç¤Ï¼ê½ç¤ËɬÍפʾðÊó¤À¤±¤ò¥Ô¥Ã¥¯¥¢¥Ã¥×¤·¤Æµ­½Ò¤·¤Æ¤¤¤Þ¤¹¡£

¡¡¤Þ¤¿¡¢Unity ¤Ë¤Ï Animator ¤È Animation ¤È¤¤¤¦µ¡Ç½¤¬¤¢¤ê¡¢Ì¾Á°¤Ï»÷¤Æ¤¤¤Þ¤¹¤¬¡¢°Û¤Ê¤ëµ¡Ç½¤Ë¤Ê¤ê¤Þ¤¹¡£
¤½¤¦¤¤¤Ã¤¿Ì¾¾Î¤Î°ã¤¤¤«¤é¤â¤ï¤«¤ë¤è¤¦¤Ë¡¢´Ö°ã¤¨¤Æ³Ð¤¨¤Æ¤·¤Þ¤¦¤Èǧ¼±¤ò½¤Àµ¤¹¤ë¤³¤È¤¬ÂçÊѤˤʤê¤Þ¤¹¤Î¤Ç¡¢
¤·¤Ã¤«¤ê¤È¤ï¤«¤ë¤Þ¤ÇÉü½¬¤ò¤·¤Æ¡¢Àµ¤·¤¤Ã챤ò³Ð¤¨¤Æ¤¤¤Ã¤Æ¤¯¤À¤µ¤¤¡£



¡¡Unity ¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ï Animator ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Ë¤è¤Ã¤Æ¡¢¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎÀßÄê¤ò¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£
¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎÀßÄê¤ò¹Ô¤Ã¤Æ¤¤¤ë¾ðÊó¤ò Animation Controller ¤È¤¤¤¤¤Þ¤¹¡£
¤³¤ì¤Ï¡¢Animator ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î Controller ¥×¥í¥Ñ¥Æ¥£¤ËÀßÄê¤ò¤¹¤ë¤³¤È¤Ç¡¢¤½¤Î Controller ¤Î¾ðÊó¤¬Å¬ÍѤµ¤ì¤Þ¤¹¡£

¡¡£±¤Ä£±¤Ä¤Î¥¢¥Ë¥á¡¼¥·¥ç¥ó¤Î¾ðÊó¤Ï¡¢Animation Clip ¤È¤¤¤¦¾ðÊó¤Ë¤Ê¤ê¤Þ¤¹¡£
¤³¤Î¾ðÊó¤ò State ¤È¤¤¤¦ÉôÉʤ˳ä¤êÅö¤Æ¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢ºÆÀ¸¤¹¤ë¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎÀßÄ꤬¹Ô¤¨¤Þ¤¹¡£

¡¡State Ʊ»Î¤ÏÌð°õ¤Ë¤è¤Ã¤Æ¤Ä¤Ê¤²¤Æ¤¤¤¯¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤ÎÌð°õ¤ò¥È¥é¥ó¥¸¥·¥ç¥ó¤È¤¤¤¤¤Þ¤¹¡£
¥È¥é¥ó¥¸¥·¥ç¥ó¤Î¤¢¤ë State Ʊ»Î¤Î¤ß¤¬Á«°Ü¤ò¹Ô¤Ã¤Æ¡¢ºÆÀ¸¤¹¤ë¥¢¥Ë¥á¡¼¥·¥ç¥ó¤¬ÀÚ¤êÂؤï¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£

¡¡¤³¤ì¤¬°ìÈÌŪ¤Ê¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎÀßÄê¤Ç¤¹¡£
¤½¤Î¤Û¤«¤Ë¤â BlendTree ¤òÍøÍѤ·¤¿ÊýË¡¤â¤¢¤ê¤Þ¤¹¤¬¡¢º£²ó¤ÏÍøÍѤ·¤Æ¤¤¤Þ¤»¤ó¡£


Animator ¥Ó¥å¡¼¤òÄɲ乤ë


¡¡Unity¤Îº¸¾å¤Ë¤¢¤ë¥á¥Ë¥å¡¼¤ÎÃ椫¤é Window => Animation => Animator ¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
Scene¥Ó¥å¡¼¤äGame¥Ó¥å¡¼¤Î¤è¤¦¤Ê Animator¥Ó¥å¡¼¤¬¥¨¥Ç¥£¥¿¡¼¤Î¥ì¥¤¥¢¥¦¥ÈÆâ¤ËÄɲ䵤ì¤Þ¤¹¡£


Animator¥Ó¥å¡¼




¡¡¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎÀÚ¤êÂؤ¨¤ÎÀßÄê¤Ï¡¢¤³¤ÎAnimator¥Ó¥å¡¼¤ÎÃæ¤Ç¹Ô¤¤¤Þ¤¹¡£
ÀßÄê¤ò¹Ô¤¦¤¿¤á¤Ë¤Ï¡¢ÂоݤȤʤ륲¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥Ò¥¨¥é¥ë¥­¡¼¤ÇÁªÂò¤·¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£

¡¡¥Ò¥¨¥é¥ë¥­¡¼¤Ë¤¢¤ë Player ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤¿¾õÂ֤ˤ·¤Æ¤¯¤À¤µ¤¤¡£(¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤Ëɽ¼¨¤µ¤ì¤Æ¤¤¤ë¾õÂÖ)
¤³¤Î¾õÂ֤ˤʤë¤È¡¢Player ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¡¢Animator ¥³¥ó¥Ý¡¼¥Í¥ó¥ÈÆâ¤Ë¤¢¤ë¡¢Controller ¥×¥í¥Ñ¥Æ¥£¤Î¾ðÊó¤¬ Animator ¥Ó¥å¡¼ ¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£


Animator ¥³¥ó¥Ý¡¼¥Í¥ó¥È



¡¡Animator¥Ó¥å¡¼¤ÎÁàºî¤Ç¤¹¤¬¡¢¥Þ¥¦¥¹¤Î¥Û¥¤¡¼¥ë¥Ü¥¿¥ó¤ò²¡¤·¤Ê¤¬¤é¥Þ¥¦¥¹¤ò°ÜÆ°¤µ¤»¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢Animator¥Ó¥å¡¼¤ÎÃæ¤ò°ÜÆ°¤Ç¤­¤Þ¤¹¡£


State ¤È Motion(AnimationClip)



Idle




Walk




Animator¥Ó¥å¡¼¤Î Parameters ¤ÇÁ«°Ü¾ò·ï¤òºîÀ®¤¹¤ë


¡¡¥¢¥Ë¥á¤Î¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë AnimationClip ¤Ç¤¹¤¬¡¢¤³¤Á¤é¤Ï State ¤È¤¤¤¦¾ðÊó¤Î Motion ¤Ë£±¤Ä¤À¤±ÅÐÏ¿¤¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¤³¤Î State ´Ö¤òÁ«°Ü¤·¤Æ¡¢¥¢¥Ë¥á¤ÎÀÚ¤êÂؤ¨¤ò¹Ô¤Ã¤Æ¤¤¤Þ¤¹¡£

¡¡¤³¤Î¤È¤­¡¢State ¤Ë¤ÏÁ«°Ü¤¹¤ë¤¿¤á¤Î¾ò·ï¤òÀßÄꤷ¤Æ¤ª¤¯¤³¤È¤¬½ÐÍè¤Þ¤¹¡£(̵¾ò·ï¤â²Äǽ¤Ç¤¹)
Î㤨¤Ð¡¢¤É¤¦¤¤¤Ã¤¿¾õÂ֤ˤʤ俤Ȥ­¤Ë¡¢¤³¤Î¥¢¥Ë¥á¤ÎºÆÀ¸¤ò¤·¤Æ¤Û¤·¤¤¡¢¤È¤¤¤¦¾ðÊó¤ò Animator ¥Ó¥å¡¼Æâ¤Ç»öÁ°¤ËÅÐÏ¿¤·¤Æ¤ª¤¯¤³¤È¤Ë¤è¤ê¡¢
¤½¤Î¾ò·ï¼°¤ò¥¹¥¯¥ê¥×¥ÈÆâ¤ÇÀ©¸æ¤·¡¢¥¢¥Ë¥á¤ÎºÆÀ¸¤ÈƱ´ü¤µ¤»¤ë¤³¤È¤¬½ÐÍè¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£

¡¡º£²ó¤Ï¡¢¥­¥ã¥é¤Î°ÜÆ°¤Î¥­¡¼ÆþÎϤ˹ç¤ï¤»¤Æ¡¢¥¢¥Ë¥á¤ÎºÆÀ¸¤òÀ©¸æ¤¹¤ëÀ߷פˤ·¤Þ¤¹¤Î¤Ç¡¢
¥­¡¼ÆþÎϤÈƱ¤¸¤è¤¦¤Ë¡¢X ¼´¤È Y ¼´¤Î¾ðÊó¤ò¾ò·ï¼°¤È¤·¤ÆÍÑ°Õ¤¹¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£

¡¡¾ò·ï¼°¤È¤·¤Æ¡¢Animator ¤Ç¤Ï¡¢Parameter(¥Ñ¥é¥á¡¼¥¿) ¤òºîÀ®¤·¤Æ¡¢ÀßÄꤹ¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£¡£

¡¡¥Ñ¥é¥á¡¼¥¿¤È¤Ï¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎºÆÀ¸¤Î¾õÂÖ¤òÀßÄꤹ¤ë¤â¤Î¤Ç¤¹¡££´¤Ä¤Î¼ïÎब¤¢¤ê¡¢º£²ó¤Ï Float ·¿¤ò¿·¤·¤¯ºîÀ®¤·¤Þ¤¹¡£
Animator¥Ó¥å¡¼¤Î¤¹¤°²¼¤Ë Parameters ¤È¤¤¤¦¹àÌܤ¬¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¤½¤ÎÃæ¤Ë¤¢¤ë¥×¥é¥¹¥Ü¥¿¥ó¤òÁªÂò¤·¡¢Float ¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£


Parameters²èÁü



¡ã¼ê½çÆ°²è¡¡¥Ñ¥é¥á¡¼¥¿¤ÎÅÐÏ¿¡ä
https://gyazo.com/63c7dac793d657c067a1b27afdad7c81


¡¡Parameters¤ÎÃæ¤Ë¿·¤·¤¤¥Ñ¥é¥á¡¼¥¿¤¬ºîÀ®¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢Ì¾Á°¤ò Look X ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
Float·¿¤Î¾ì¹ç¡¢Ì¾Á°¤Î±¦Â¦¤Ë 0.0 ¤È¤¤¤¦¿ô»ú¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£(¤³¤ÎÉôʬ¤¬·¿¤Ë¤è¤Ã¤ÆÊѲ½¤·¡¢¼ïÎà¤ÎÆÃÄ꤬ÍưפˤʤäƤ¤¤Þ¤¹)

¡¡Æ±¤¸¼ê½ç¤Ç¡¢¤â¤¦°ìÅ٥ץ饹¥Ü¥¿¥ó¤òÁªÂò¤·¡¢Æ±¤¸¤¯ Float ¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
Parameters¤ÎÃæ¤Ë¿·¤·¤¤¥Ñ¥é¥á¡¼¥¿¤¬ºîÀ®¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢Ì¾Á°¤ò Look Y ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£


Parameters¤Ë¥Ñ¥é¥á¡¼¥¿¤òÄɲä·¤¿¸å¤Î²èÁü



¥È¥é¥ó¥¸¥·¥ç¥ó




Idle ¢ª¡¡Walk








Walk ¢ª Idle








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

¡¡=>¡¡¼¡¤Ï¡¡¼ê½ç£¹¡¡¡Ý¥­¥ã¥é¥¯¥¿¡¼¤Î¥¢¥Ë¥á¡¼¥·¥ç¥óÁ«°ÜÍѤΥ¹¥¯¥ê¥×¥È¤ÎºîÀ®¡Ý¡¡¤Ç¤¹¡£

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


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

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

Menu


´ðÁÃ

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

private



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

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