ºÇ½ª¹¹¿·¡§
orika_ex_miyako 2024ǯ08·î01Æü(ÌÚ) 08:49:06ÍúÎò
¡¡º£²ó¥×¥ì¥¤¥ä¡¼Ìò¤ËÍøÍѤ·¤è¤¦¤È¤·¤Æ¤¤¤ë¥â¥Ç¥ë¤Ï¥ï¡¼¥ë¥É¶õ´Ö(¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¤¤¤Ä¤âÇÛÃÖ¤¹¤ë¾ì½ê)ÍѤΥ¥ã¥é¥â¥Ç¥ë¤Ç¤¢¤ë¤¿¤á¡¢¼ÂÁõÊýË¡¤È¤·¤Æ¤Ï£²¥Ñ¥¿¡¼¥ó¤¬¤¢¤ê¤Þ¤¹¡£
¡¡£±¤Ä¤Ï¡¢£²£Ä¤ÎÀŻ߲è(Image ¥³¥ó¥Ý¡¼¥Í¥ó¥È)¤È¤·¤Æ Canvas Æâ¤ËÀßÃÖ¤¹¤ëÊýË¡¡¢¤â¤¦£±¤Ä¤Ï¥¥ã¥é¥â¥Ç¥ëÀìÍѤΥ«¥á¥é¤È¥¢¥»¥Ã¥È¤òÍÑ°Õ¤·¤Æ¡¢Canvas ¾å¤Ë¥¥ã¥é¥â¥Ç¥ë¤È¤·¤Æɽ¼¨¤¹¤ëÊýË¡¤Ç¤¹¡£
¼ç¤Ê°ã¤¤¤È¤·¤Æ¤Ï¡¢£²¤ÄÌܤΥ¥ã¥é¥â¥Ç¥ë¤È¤·¤Æ¥²¡¼¥à²èÌ̤Ëɽ¼¨¤¹¤ë¾ì¹ç¤Ë¤Ï¡¢¥¥ã¥é¥â¥Ç¥ë¤Î»ý¤Ä¥¢¥Ë¥á¡¼¥·¥ç¥ó¤òºÆÀ¸¤¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¡¡¤Þ¤º¤Ï£²£Ä¤ÎÀŻ߲è¤È¤·¤Æ¼ÂÁõ¤·¤Þ¤¹¤Î¤Ç¡¢ºÇ½é¤Ë¡Ú£¶¡Û¤Î¼ê½ç¤ò¿Ê¤á¤Æ¤¯¤À¤µ¤¤¡£
¡Ú£¶¡Û¤Î¼ê½ç¤ò¼ÂÁõ¸å¤Ë¡¢¡Ú£·¡Û¤Î¼ê½ç¤ò³Îǧ¤·¤Æ¤¤¤¿¤À¤¤¤Æ¡¢²ÝÂê¤È¤·¤Æ¼è¤êÁȤ᤽¤¦¤Ç¤¢¤ì¤Ð¼ÂÁõ¤·¤Æ¤¤¤¤Þ¤¹¤¬¡¢Æñ¤·¤¤¤È´¶¤¸¤¿¤é¼ê½ç¡Ú£·¡Û¤Ï¥¹¥¥Ã¥×¤·¤Æ¤¯¤À¤µ¤¤¡£
¡ã¼ÂÁõ²èÁü¡ä
![](https://image02.seesaawiki.jp/i/o/i-school-memo/bIMNSpWsbv.png)
¡ã¼ÂÁõÆ°²è¡¡±þÍѲÝÂê¡£¼ê½ç£·¤Ç¼ÂÁõ¡ä
Æ°²è¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯
¼ê½ç£´¡¡¡Ý¥×¥ì¥¤¥ä¡¼¤ÎºîÀ®¡Ý
¡¡£¶¡¥CanvasÆâ¤Ë¥×¥ì¥¤¥ä¡¼ÍѤΥ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÇÛÃÖ¤·¡¢ÀßÄꤹ¤ë ¡¡£·¡¥¥¥ã¥é¥â¥Ç¥ë¤ò Canvas ¾å¤Ëɽ¼¨¤µ¤»¤ë(±þÍѲÝÂê)
¡¡¿·¤·¤¤³Ø½¬ÆâÍƤϡ¢°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
¡¡¡¦¥¥ã¥é¥â¥Ç¥ë¤òUI(Canvas)¾å¤Ëɽ¼¨¤¹¤ëÊýË¡(RawImage ¥³¥ó¥Ý¡¼¥Í¥ó¥È¡¢RenderTexture¤Î³èÍÑ)¡Ú£·¡Û
¡¡¤³¤Î¼ê½ç¤Ç¤Ï¡¢Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥ÈÆâ¤Ë¥×¥ì¥¤¥ä¡¼¤Îʬ¿È¤È¤Ê¤Ã¤ÆÁàºî¤ò¹Ô¤¦¤¿¤á¤Î¥¥ã¥é¤òÀ½ºî¤·¤Æ¤¤¤¤Þ¤¹¡£
¤³¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤â¥²¡¼¥à²èÌ̤˱ǤëɬÍפΤ¢¤ë¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤¹¤Î¤Ç¡¢ Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤Æ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¤Æ¤¤¤¤Þ¤¹¡£
¡¡¤³¤³¤Ç¤Ï¡¢¥¥ã¥é¤ò´ÉÍý¤¹¤ë¤¿¤á¤Î¥Õ¥©¥ë¥ÀÌò¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤È¡¢¥¥ã¥é²èÁü¤òÀßÄꤹ¤ë¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î£²¤Ä¤ò½çÈ֤˺îÀ®¤·¡¢¥¥ã¥é¤òÀ߷פ·¤Þ¤¹¡£
¡¡Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¾å¤Ç±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤¡¢Create Empty ¤òÁªÂò¤·¤Þ¤¹¡£
¿·¤·¤¯¶õ¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È(Transfrom ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î¤ß¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¡¢Ìò³ä¤Î¤Þ¤À¤Ê¤¤¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È)¤¬ºîÀ®¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢Ì¾Á°¤ò PlayerSet ¤ËÊѹ¹¤·¤Þ¤¹¡£
PlayerSet ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ï¡¢¥¥ã¥é¤Ë´ØÏ¢¤¹¤ë¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È·²¤ò¤Þ¤È¤á¤Æ¤ª¤¯¤¿¤á¤Î¡¢¥Õ¥©¥ë¥ÀÌò¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤¹¡£
PlayerSet ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥Ò¥¨¥é¥ë¥¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/iumpY52Ace.png)
¡¡PlayerSet ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤Æ¡¢RectTransform ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¤«³Îǧ¤·¤Þ¤¹¡£
Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë´Þ¤Þ¤ì¤ë¥ª¥Ö¥¸¥§¥¯¥È¤Ï Transform ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Ç¤Ï¤Ê¤¯¡¢RectTransform ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Ë¤è¤Ã¤Æ°ÌÃÖ¾ðÊó¤ò´ÉÍý¤·¤Æ¤¤¤Þ¤¹¡£
¤â¤·¤âÄ̾ï¤Î Transform ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢ºÆÅÙºî¤êľ¤·¤Æ¤¯¤À¤µ¤¤¡£
PlayerSet ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image01.seesaawiki.jp/i/o/i-school-memo/mm6almz5me.png)
PlayerSet ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡Scene¥Ó¥å¡¼²èÁü(Scene¥Ó¥å¡¼¤ÎÃæ±û¤Ë¤¢¤ë)
![](https://image01.seesaawiki.jp/i/o/i-school-memo/bEqlfE6YlE.png)
¡¡°Ê¾å¤Ç¤³¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎÀßÄê¤Ï´°Î»¤Ç¤¹¡£
¡¡PlayerSet ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¾å¤Ç±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤¡¢UI => Image ¤òÁªÂò¤·¤Þ¤¹¡£
Scene¥Ó¥å¡¼Æâ¤ÎÃæ±û¤Ë¡¢Imgae ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬¥¢¥¿¥Ã¥Á¤µ¤ì¤¿Çò¤¤¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬¿·¤·¤¯ºîÀ®¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢Ì¾Á°¤ò imgChara ¤ËÊѹ¹¤·¤Þ¤¹¡£
imgChara ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥Ò¥¨¥é¥ë¥¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/ppbdhPX34g.png)
imgChara ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ï¡¢¥²¡¼¥à¤ËÅо줹¤ë¥×¥ì¥¤¥ä¡¼Ìò¤Î¥¥ã¥é¤Î²èÁüɽ¼¨¤ÎÌò³ä¤ò»ý¤Á¤Þ¤¹¡£
imgChara ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È ¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image01.seesaawiki.jp/i/o/i-school-memo/Ee0XqRKrTT.png)
imgChara ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡Scene¥Ó¥å¡¼²èÁü(¿¿¤óÃæ¤ÎÇò¤¤¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È)
![](https://image02.seesaawiki.jp/i/o/i-school-memo/eYZqWiDMUw.png)
¡¡PlayerSet ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤ÆÀßÃÖ¤µ¤ì¤Æ¤¤¤ë¤«¡¢³Îǧ¤·¤¿¸å¡¢¼¡¤ÎÀßÄê¤Î¼ê½ç¤Ø°Ü¤ê¤Þ¤¹¡£
¡¡ºÇ½é¤Ë²èÁü¤òÀßÄꤷ¤Þ¤¹¡£
imgChara ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤ò³Îǧ¤·¡¢Image ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î Source Image ¤ÎÉôʬ¤Ë²èÁü¤òÀßÄꤷ¤Þ¤¹¡£
¡¡¤³¤Á¤é¤Î²èÁü¤¬¥²¡¼¥à²èÌ̤ËŬÍѤµ¤ì¤ë¥¥ã¥é¤Î²èÁü¤È¤Ê¤ê¤Þ¤¹¤Î¤Ç¡¢ÌµÎÁ¥¢¥»¥Ã¥È¤È¤·¤Æ¥¤¥ó¥Ý¡¼¥È¤·¤¿¥¢¥»¥Ã¥ÈÆâ¤Î²èÁü¤ò¤³¤Á¤é¤ËÍøÍѤ·¤Þ¤¹¡£
¥Ñ¥¹
Assets/Little Cat Girl/Little_Cat_Girl_ref.png
¥Õ¥©¥ë¥À²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/rXqwU6LQm1.png)
¡¡¾åµ¤Î¥Ñ¥¹¤Î¥Õ¥©¥ë¥ÀÆâ¤Ë¤¢¤ëÂоݤβèÁü¥Õ¥¡¥¤¥ë¤ò¡¢Source Image ¤ÎÍó¤Þ¤Ç¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥µ¥¤¥ó¤·¤Æ¤¯¤À¤µ¤¤''¡£
²èÁü¤¬ÅÐÏ¿¤µ¤ì¤Æ¡¢Scene¥Ó¥å¡¼¤ËÈ¿±Ç¤µ¤ì¤Þ¤¹¡£
¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image01.seesaawiki.jp/i/o/i-school-memo/utQhYsVdyS.png)
Scene¥Ó¥å¡¼²èÁü(Çò¤¤¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤Ï¤Ê¤¯¤Ê¤Ã¤Æ¤¤¤ë)
![](https://image01.seesaawiki.jp/i/o/i-school-memo/WlK3F_lcKJ.jpg)
¡¡²èÁü¤ÎÀßÄ꤬½ªÎ»¤·¤¿¤é¡¢Image ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î Raycast Target ¤Î¥¹¥¤¥Ã¥Á¤ò³°¤·¤Æ¥ª¥Õ¤Ë¤·¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£
¡¡²èÁü¤òÀßÄꤷ¤¿¤é¡¢Â礤µ¤òÄ´À°¤·¤Þ¤¹¡£
¡¡imgChara ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î RectTransfrom ¥³¥ó¥Ý¡¼¥Í¥ó¥ÈÆâ¤Ë¤¢¤ë¡¢Scale ¤ÎÃͤò (1, 1, 1) => (3, 3, 3) ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
¸½ºß¤Î¥µ¥¤¥º¤¬£³Çܤˤʤê¤Þ¤¹¡£º£²ó¤âÀßÄꤷ¤Ê¤¬¤é¡¢Game¥Ó¥å¡¼¤Ë¤É¤Î¤è¤¦¤Ë±Ç¤Ã¤Æ¤¤¤ë¤«¤ò³Îǧ¤·¤Æ¤ª¤¤Þ¤¹¡£
imgChara ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image01.seesaawiki.jp/i/o/i-school-memo/caU2N4gGGl.png)
imgChara ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡Scene¥Ó¥å¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/Hq34I8G9qs.png)
imgChara ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡Game¥Ó¥å¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/WoJuGGDXYL.png)
¡¡°Ê¾å¤ÇÀßÄê¤Ï´°Î»¤Ç¤¹¡£
¥¥ã¥é¤Î¥µ¥¤¥º¤Ï¸å¤Ç¤âÄ´À°¤Ç¤¤Þ¤¹¤Î¤Ç¡¢²èÌ̤ò³Îǧ¤·¤Ê¤¬¤éÄ´À°¤ò¤·¤Þ¤·¤ç¤¦¡£
¡¡¼¡¤Î¼ê½ç¤Ï¼ÂÁõ¤·¤Æ¤â¤·¤Ê¤¯¤Æ¤âÌäÂꤢ¤ê¤Þ¤»¤ó¡£Â³¤±¤Æ³Ø½¬¤·¤Æ¤â¤è¤¤¤Ç¤¹¤·¡¢¸å¤Ç¿¶¤êÊ֤äƳؽ¬¤ò¤·¤Æ¤â¤è¤¤¤Ç¤¹¡£
¡¡¼¡¤Ï¡¡¼ê½ç£µ¡¡¡Ý¥Ð¥ì¥Ã¥È¤ÎºîÀ®¡Ý¡¡¤Ç¤¹¡£
¡¡Unity¤Ç¤Ï¡¢Canvas ¤ËÀßÃÖ¤¹¤ë UI ÍѤΥ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎÉÁ²è¤ò¹Ô¤¦¾ì¹ç¤Ë¤Ï¡¢Image ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤òÍøÍѤ¹¤ë¤è¤¦¤ËÀ߷פµ¤ì¤Æ¤¤¤Þ¤¹¡£
¡¡¤Ç¤¹¤¬¡¢¥ï¡¼¥ë¥É¶õ´Ö¤ËÀßÃÖ¤¹¤ë¤³¤È¤òÁ°Äó¤ËºîÀ®¤µ¤ì¤Æ¤¤¤ë£²£Ä¤ä£³£Ä¤Î¥¥ã¥é¥â¥Ç¥ë¤Ï¡¢¥²¡¼¥à²èÌ̤ËÉÁ²è¤ò¹Ô¤¦ºÝ¤Ë Image ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Ç¤Ï¤Ê¤¯¡¢
£²£Ä¤Ç¤¢¤ì¤Ð SpriteRenderer ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬¡¢£³£Ä¤Ç¤¢¤ì¤Ð MeshRenderer ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ä SkinedMeshRenderer ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬ÍøÍѤµ¤ì¤Æ¤¤¤Þ¤¹¡£
¡¡¤³¤Î¤è¤¦¤Ë¡¢¥²¡¼¥à²èÌ̤ËÉÁ²è¤ò¹Ô¤¦ÀßÄ꼫ÂΤ¬°Û¤Ê¤ë¹½Â¤¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤¿¤á¡¢Â¿¤¯¤Î¥¥ã¥é¥â¥Ç¥ë¤Ï Canvas Æâ¤Ë¤ÏÀßÃÖ¤¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤»¤ó¡£
¡Ê¸·Ì©¤Ë¤¤¤¦¤ÈÀßÃ֤ϽÐÍè¤ë¤Î¤Ç¤¹¤¬¡¢¥µ¥¤¥º¤äµóÆ°¤¬Àµ¾ï¤ËÆ°ºî¤·¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£)
¡¡¤½¤Î¤¿¤á¡¢¥¥ã¥é¥â¥Ç¥ë¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤Ä¤¤¤Æ¤Ï¡¢Ä̾ï¤Î¥²¡¼¥àÀ©ºî¤ÇÍøÍѤ¹¤ëUnity¤Î¥ï¡¼¥ë¥É¶õ´Ö¤ËÀßÃÖ¤·¤Þ¤¹¡£
¤½¤·¤Æ¿·¤·¤¯¥¥ã¥é¥â¥Ç¥ëÀìÍѤΥ«¥á¥é¤òºîÀ®¤·¡¢¤½¤Î¥«¥á¥é¤òÄ̤¸¤Æ Canvas ¾å¤Ë¥¥ã¥é¥â¥Ç¥ë¤ò±Ç¤¹¼ê½ç¤ÇÀ߷פò¹Ô¤¤¤Þ¤¹¡£
¡¡¥ï¡¼¥ë¥É¶õ´Ö¤Ç¤¢¤ì¤Ð¥¥ã¥é¥â¥Ç¥ë¤ÏÀµ¾ï¤ËÉÁ²è½èÍý¤¬¹Ô¤ï¤ì¤Þ¤¹¡£
¡¡¥ï¡¼¥ë¥É¶õ´Ö¤Ë¤¢¤ë¥¥ã¥é¥â¥Ç¥ë¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥«¥á¥é¤òÄ̤¸¤Æ Canvas ¤ËÅê±Æ¤·¡¢£²¤Ä¤Î¥«¥á¥é¤¬±Ç¤¹Âоݤò¹çÀ®¤·¤Æ±Ç¤·¤Æ¤¤¤Þ¤¹¡£
¡ã¼ÂÁõÆ°²è¡¡Canvas °Ê³°¤Î¾ì½ê¤Ë¤¤¤ë¥¥ã¥é¥¥ã¥é¤Î¾ðÊ󤬡¢¥«¥á¥é¤òÄ̤¸¤Æ Canvas Æâ¤ËÅê±Æ¤µ¤ì¤Æɽ¼¨¤µ¤ì¤Æ¤¤¤ë¡ä
Æ°²è¥Õ¥¡¥¤¥ë¤Ø¤Î¥ê¥ó¥¯
¡¡¤³¤Î¼êË¡¤òÍøÍѤ¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢Canvas ÍѤÎÉÁ²èÀßÄê¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤¢¤Ã¤Æ¤â Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤È°ì½ï¤Ë¥²¡¼¥à²èÌ̤ËÅо줵¤»¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¼ê½ç¤È¤·¤Æ¤Ï¡¢¼¡¤Îή¤ì¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡£±¡¥¥¥ã¥é¥â¥Ç¥ë¤Î¥¥ã¥é(°Ê²¼¡¢¥¥ã¥é)¤ò¥ï¡¼¥ë¥É¶õ´Ö¤ËÀßÃÖ¤¹¤ë ¡¡£²¡¥¥¥ã¥é¤ÎÀßÄê¤ò¹Ô¤¦ ¡¡£³¡¥ÀìÍѤΥ¿¥°¤òÀßÄꤹ¤ë ¡¡£´¡¥RenderTexture ¤òºîÀ®¤¹¤ë ¡¡£µ¡¥¥¥ã¥é¤ò±Ç¤¹ÀìÍѤΥ«¥á¥é¤òºîÀ®¤·¡¢ÀßÄê¤ò¹Ô¤¦ ¡¡£¶¡¥Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤Æ RawImage ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¡¢ÀßÄê¤ò¹Ô¤¦
¡ã´°À®¿Þ¡ä
![](https://image01.seesaawiki.jp/i/o/i-school-memo/Pobj5nmbRB.png)
¡¡½ÅÍפʤ³¤È¤Ï¡¢¼ê½çÄ̤ê¤Ë¿Ê¤á¤Æ¼ÂÁõ¤ò¹Ô¤¦¤³¤È¤Ç¤Ï¤Ê¤¯¡¢½èÍý¤ÎÆâÍƤò¤·¤Ã¤«¤ê¤ÈÍý²ò¤ò¤·¤¿¤¦¤¨¤Ç¡¢¤³¤Î¶µºà¤ò³èÍѤǤ¤Æ¤¤¤ë¤«¡¢¤È¤¤¤¦Éôʬ¤Ç¤¹¡£
¡¡¶µºà¤ÎÆâÍÆÄ̤ê¤Ë¿Ê¤á¤Æ¤¤¤±¤ì¤Ð¥¨¥é¡¼¤Ï½Ð¤¿¤È¤·¤Æ¤â¼ÂÁõ¤ò¹Ô¤¦¤³¤È¤Ï¤Ç¤¤Þ¤¹¡£
¤Ç¤¹¤¬¡¢¤½¤Î¼ÂÁõÆâÍƤò¿¶¤êÊ֤äơ¢¼«Ê¬¤Îµ»½Ñ¤È¤·¤Æ³Ð¤¨¤ë¤³¤È¤¬½ÐÍè¤ë¤«¤É¤¦¤«¤Ï¡¢½èÍý¤ÎÍý²òÅ٤ˤè¤ê¤Þ¤¹¡£
¡¡¤½¤Î¤¿¤á¡¢¤â¤·¤â¾åµ¤Î¼ê½ç¤Ë¤Ä¤¤¤Æ¤ï¤«¤é¤Ê¤¤Éôʬ¤¬¤¢¤Ã¤¿¤ê¡¢¼ÂÁõ¤ò¿Ê¤á¤Æ¤¤¤¯Ãæ¤ÇÆñ¤·¤¤Éôʬ¤¬¤¢¤ë¾ì¹ç¤Ë¤Ï¡¢¤³¤Î¼ê½ç¤Ï¥¹¥¥Ã¥×¤·¤Æ¤¯¤À¤µ¤¤¡£
¤·¤Ã¤«¤ê¤È Unity ¤ÎÃ챤ò¿¼¤á¤Æ¤«¤éºÆÅÙÄ©À路¤Æ¤¤¤¿¤À¤¯¤³¤È¤ò¤ª´«¤á¤·¤Þ¤¹¡£¤Þ¤Ã¤¿¤¯ÌäÂꤢ¤ê¤Þ¤»¤ó¡£
£²¡¥PlayerSet ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤¢¤ë imgChara ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÈóɽ¼¨¤ËÀßÄꤹ¤ë ![](https://static.seesaawiki.jp/img/usr_second/common/icon_pen.gif)
¡¡¥¥ã¥é¥â¥Ç¥ë¤Î¥¥ã¥é¤ò Canvas ¾å¤Ë°Ü¤¹¤è¤¦¤Ë¤·¤Þ¤¹¤Î¤Ç¡¢Àè¤Û¤É¤Î¼ê½ç¤ÇºîÀ®¤·¤¿¥¥ã¥é¤Î²èÁü¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÏÉÔÍפȤʤê¤Þ¤¹¡£
¡¡¼ê½ç¡Ú£¶¡Û¤ÇºîÀ®¤·¤¿PlayerSet ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤¢¤ë imgChara ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î̾Á°¤Î²£¤Î¥¹¥¤¥Ã¥Á¤òÀڤäÆÈóɽ¼¨¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
PlayerSet ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¼«ÂΤϺ£¸å¤âÍøÍѤ·¤Þ¤¹¤Î¤Ç¡¢Èóɽ¼¨¤Ë¤¹¤ëÂоݤò´Ö°ã¤¨¤Ê¤¤¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
¥Ò¥¨¥é¥ë¥¡¼²èÁü
![](https://image01.seesaawiki.jp/i/o/i-school-memo/sanqV34LOO.png)
¡¡¥¤¥ó¥Ý¡¼¥È¤·¤Æ¤¢¤ë¥¢¥»¥Ã¥È¤Î¥¥ã¥é¥â¥Ç¥ë¤ò¥Ò¥¨¥é¥ë¥¡¼¤ËÇÛÃÖ¤·¤Þ¤¹¡£
°Ê²¼¤Î¥Ñ¥¹¤Ë¤¢¤ë¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¥×¥ì¥Õ¥¡¥Ö¤òõ¤·¤ÆÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
¾¤Î̵ÎÁ¤Î¥¢¥»¥Ã¥È¤òÍøÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢¤½¤Á¤é¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
¥Ñ¥¹
Assets/Little Cat Girl/Little_Cat_Girl.prefab
¥Õ¥©¥ë¥À²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/flA1A_nQIn.png)
¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/RITFS3oW4q.png)
¡¡¥Ò¥¨¥é¥ë¥¡¼¤Î¶õ¤¤¤Æ¤¤¤ë¾ì½ê¤Ë¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¤¯¤À¤µ¤¤¡£
¤³¤Î¤È¤¡¢Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤·¤Ê¤¤¤è¤¦¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£
¥Ò¥¨¥é¥ë¥¡¼²èÁü
![](https://image01.seesaawiki.jp/i/o/i-school-memo/tR21Hb5az3.png)
Little_Cat_Girl ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/aGla9JLGSr.png)
¡¡¤³¤Î»þÅÀ¤Ç¤Ï¤Þ¤À Canvas ¾å¤Ë¤Ï¥¥ã¥é¥¥ã¥é¤Î²èÁü¤Ïɽ¼¨¤µ¤ì¤Þ¤»¤ó¡£
¡¡¥¥ã¥é¥â¥Ç¥ë¤ÏTransfrom ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Ë¤è¤Ã¤Æ¥ï¡¼¥ë¥ÉºÂɸ¤Î°ÌÃÖ¾ðÊ󤬴ÉÍý¤µ¤ì¤Æ¤¤¤ë¤Î¤ËÂФ·¤Æ
Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ï Canvas ÍѤΠRectTransform ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Ë¤è¤Ã¤Æ Canvas ¾å¤Ç¤ÎºÂɸ¤Ë¤è¤Ã¤Æ´ÉÍý¤µ¤ì¤Æ¤¤¤ë¤¿¤á
¤½¤ì¤¾¤ì¤¬Ê̤ΰÌÃÖ¤ËÇÛÃÖ¤µ¤ì¤Æ¤¤¤ë¤¿¤á¤Ç¤¹¡£
¡¡¥¥ã¥é¥â¥Ç¥ë¤¬ Canvas ¤Î¸å¤í¤Ë±£¤ì¤Æ¤·¤Þ¤Ã¤Æ¤¤¤ë¤¿¤á¡¢¤½¤Î¤Þ¤Þ¤Ç¤¹¤È½Å¤Ê¤Ã¤Æ¤·¤Þ¤Ã¤Æº£¸å¤Îºî¶È¤¬¤·¤Ë¤¯¤¯¤Ê¤ê¤Þ¤¹¡£
Little_Cat_Girl ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î Transform ¤Î Position.x ¤ò -10 ¤ËÀßÄꤷ¡¢Canvas ¤Îº¸Â¦¤Ë¥¥ã¥é¤ò°ÜÆ°¤µ¤»¤Æ¡¢Scene¥Ó¥å¡¼¤Ëʤó¤Ç±Ç¤ë¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡¤Þ¤¿¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ä¡¢»Ò¥ª¥Ö¥¸¥§¥¯¥È¤ÎÀßÄê¤â³Îǧ¤·¤Æ¤ª¤¤Þ¤·¤ç¤¦¡£SpriteRenderer ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¤³¤È¤¬Ê¬¤«¤ê¤Þ¤¹¡£
Little_Cat_Girl ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image01.seesaawiki.jp/i/o/i-school-memo/uiO_ibgm6p.png)
Scene¥Ó¥å¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/6fc_Q3rk0u.png)
¡¡¤³¤ÎÀè¤Î¼ê½ç¤Ç¡¢¥¥ã¥é¥â¥Ç¥ë¤ÎÀìÍѤΥ«¥á¥é¤òºîÀ®¤¹¤ë¤Ë¤¢¤¿¤ê¡¢³Æ¥«¥á¥é¤Ç¤Ï Layer ¤Ë¤è¤Ã¤Æ¥«¥á¥é¤Ë±Ç¤¹ÂоݤòÀ©¸Â¤¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¡¡¤½¤³¤Ç¡¢¥¥ã¥é¥â¥Ç¥ë¤À¤±¤ò±Ç¤»¤ë¤è¤¦¤ËÀìÍѤΠLayer ¤òºîÀ®¤·¡¢¤½¤Î Layer ¤ÎÀßÄê¤ò»ý¤Ä¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¤ß¤ò¥¥ã¥é¥â¥Ç¥ëÀìÍѤΥ«¥á¥é¤Ç¤Ï±Ç¤¹¤è¤¦¤ËÀßÄê¤ò¤·¤Þ¤¹¡£
¤½¤Î¤¿¤á¤Ë¤Ï¡¢¿·¤·¤¤¥¥ã¥é¥â¥Ç¥ëÉÁ²èÍѤΥ쥤¥ä¡¼¤ÎÄɲÃÅÐÏ¿¤È¡¢¤½¤Î¥ì¥¤¥ä¡¼¤ò Little_Cat_Girl ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ËÀßÄꤷ¤Þ¤¹¡£
¡¡¥Ò¥¨¥é¥ë¥¡¼¤Ë¤¢¤ë Little_Cat_Girl ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¡¢Layer ¤ÎÉôʬ¤ò¥¯¥ê¥Ã¥¯¤·¤Þ¤¹¡£
¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼¤¬³«¤¤Þ¤¹¤Î¤Ç¡¢°ìÈÖ²¼¤Ë¤¢¤ë Add Layer¡Ä ¥Ü¥¿¥ó¤òÁªÂò¤·¤Þ¤¹¡£
¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤ÎÆâÍƤ¬¡¢¿·¤·¤¤¥ì¥¤¥ä¡¼¤òÄɲ乤뤳¤È¤¬¤Ç¤¤ëÆâÍƤËÀÚ¤êÂؤï¤ê¤Þ¤¹¤Î¤Ç¡¢User Layer 8 ¤ÎÉôʬ¤Ë 3D_Chara ¥ì¥¤¥ä¡¼¤òÄɲä·¤ÆÅÐÏ¿¤·¤Æ¤¯¤À¤µ¤¤¡£
º£²ó¤Î¥¢¥»¥Ã¥È¤Î¥¥ã¥é¥â¥Ç¥ë¤Ï¸·Ì©¤Ë¤Ï£³£Ä¥¥ã¥é¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤¬¡¢¶èÊ̤·¤ä¤¹¤¤Ì¾Á°¤È¤¤¤¦¤³¤È¤Ç¥ì¥¤¥ä¡¼Ì¾¤òºîÀ®¤·¤Æ¤¤¤Þ¤¹¡£Ê̤Î̾¾Î¤Ç¤â¹½¤¤¤Þ¤»¤ó¡£
Tags & Layers ¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image01.seesaawiki.jp/i/o/i-school-memo/EvnJYLeXvP.png)
¡¡ÅÐÏ¿¤¬½ªÎ»¤·¤¿¤é¡¢Little_Cat_Girl ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¡¢¤³¤Î¥ì¥¤¥ä¡¼¤òÀßÄꤷ¤Þ¤¹¡£
¡¡Àè¤Û¤É¤ÈƱ¤¸¤è¤¦¤Ë Little_Cat_Girl ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤Î Layer ¤òÁªÂò¤·¤Æ¡¢¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼¤«¤é 3D_Chara ¥ì¥¤¥ä¡¼¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
¤½¤ÎºÝ¡¢¥ì¥¤¥ä¡¼Êѹ¹¤Î³Îǧ¤Î¥¦¥¤¥ó¥É¥¦¤¬³«¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢Little_Cat_Girl ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¥ì¥¤¥ä¡¼¤ÎÀßÄê¤ò»Ò¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤âŬÍѤ¹¤ë¤«¤É¤¦¤«¤Î³Îǧ¤Ë¤Ê¤ê¤Þ¤¹¤Î¤Ç
Yes, Change Children ¤òÁªÂò¤·¤Æ¡¢»Ò¥ª¥Ö¥¸¥§¥¯¥È¤Î¥ì¥¤¥ä¡¼¤â¤Þ¤È¤á¤Æ 3D_Chara ¥ì¥¤¥ä¡¼¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
¥ì¥¤¥ä¡¼Êѹ¹³Îǧ¥¦¥¤¥ó¥É¥¦
![](https://image02.seesaawiki.jp/i/o/i-school-memo/Td5FeAP49h.png)
Little_Cat_Girl ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image01.seesaawiki.jp/i/o/i-school-memo/8RNN5yxXqO.png)
¡¡°Ê¾å¤Ç¤³¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎÀßÄê¤Ï´°Î»¤Ç¤¹¡£
¡¡RenderTexture¡Ê¥ì¥ó¥À¡¼¥Æ¥¯¥¹¥Á¥ã¡Ë¤È¤¤¤¦¡¢¥é¥ó¥¿¥¤¥à¤ÇÉÁ²è¤ò¹Ô¤¦¥Æ¥¯¥¹¥Á¥ã¤òºîÀ®¤·¤Þ¤¹¡£
¤³¤Î¾ðÊó¤ò¡¢¼¡¤Î¼ê½ç¤ÇºîÀ®¤¹¤ë¡¢¥¥ã¥é¥â¥Ç¥ëÀìÍѤΥ«¥á¥é¤ËÀßÄꤹ¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢¥«¥á¥é¤¬±Ç¤·¤Æ¤¤¤ëÉÁ²è¾ðÊó¤ò¥Æ¥¯¥¹¥Á¥ã¤Ë¤·¤Æ¹¹¿·¤·¡¢
RawImage ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤òÄ̤¸¤Æ¡¢¥²¡¼¥à²èÌ̤ËÉÁ²è¤ò¤¹¤ë¤³¤È¤¬½ÐÍè¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
Unity¸ø¼°¥Þ¥Ë¥å¥¢¥ë
RenderTexture
https://docs.unity3d.com/ja/2019.4/Manual/class-Re...
¡¡
¡¡ºÇ½é¤Ë¡¢RenderTexture ¤ò³ÊǼ¤·¤Æ¤ª¤¯¤¿¤á¤Î¥Õ¥©¥ë¥À¤òºîÀ®¤·¤Æ¤ª¤¤Þ¤¹¡£
Project Æâ¤Î¶õ¤¤¤Æ¤¤¤ë¾ì½ê¤Ç±¦¥¯¥ê¥Ã¥¯¤ò¤¹¤ë¤«¡¢Project¥Ó¥å¡¼¤Î²¼¤Ë¤¢¤ë¥×¥é¥¹¥Ü¥¿¥ó¤ò²¡¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤¡¢Create => Folder ¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
¿·¤·¤¤¥Õ¥©¥ë¥À¤¬ºîÀ®¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢Ì¾Á°¤ò RenderTextures ¤ËÊѹ¹¤·¤Þ¤¹¡£
¡¡¤³¤Î¥Õ¥©¥ë¥À¤ÎÃæ¤ÇºÆÅÙ±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤¡¢Create => RenderTexture ¤òÁªÂò¤·¤Þ¤¹¡£
¿·¤·¤¯ RenderTexture ¤¬ºîÀ®¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢Ì¾Á°¤ò CharaRenderTexture ¤ËÊѹ¹¤·¤Þ¤¹¡£
¥Õ¥©¥ë¥À²èÁü
![](https://image01.seesaawiki.jp/i/o/i-school-memo/Ry2ogMc6kR.png)
CharaRenderTexture¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image01.seesaawiki.jp/i/o/i-school-memo/7W17ysEnJG.png)
¡¡ÆäËÀßÄê¤ò¹Ô¤¦É¬ÍפϤ¢¤ê¤Þ¤»¤ó¡£
¡¡Àè¤Û¤É¤Î¼ê½ç¤ÇºîÀ®¤·¤¿ RenderTexture ¤ËÉÁ²è¤·¤¿¾ðÊó¤ò±Ç¤¹¤¿¤á¤Î¥«¥á¥é¤òºîÀ®¤·¤Þ¤¹¡£
¡¡¥Ò¥¨¥é¥ë¥¡¼¤Î¶õ¤¤¤Æ¤¤¤ë¾ì½ê¤Ç±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤¡¢Create => Camera ¤òÁªÂò¤·¤Þ¤¹¡£
¿·¤·¤¤ Camera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬ºîÀ®¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢Ì¾Á°¤ò CharaCamera ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
¥Ò¥¨¥é¥ë¥¡¼²èÁü
![](https://image01.seesaawiki.jp/i/o/i-school-memo/GKNzUfwt7X.png)
CharaCamera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü(ºÂɸ¾ðÊó¤ÏÊѤï¤ê¤Þ¤¹¤¬¡¢¸å¤ÇÀßÄꤹ¤ë¤Î¤ÇÌäÂꤢ¤ê¤Þ¤»¤ó)
![](https://image02.seesaawiki.jp/i/o/i-school-memo/x0CmsszLJy.png)
¡¡CharaCamera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡ºÇ½é¤Ë¡¢AudioListener ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ò Remove ¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡¤³¤Î¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Ï¡¢¥²¡¼¥àÆâ¤Ë¤ª¤¤¤Æ¥Þ¥¤¥¯¤Î¤è¤¦¤Êµ¡Ç½¤ò»ý¤Á¡¢¥²¡¼¥àÆâ¤ÇȯÀ¸¤·¤¿²»¸»¡ÊBGM¤äSE¡Ë¤ò½¦¤Ã¤Æ¡¢PC¤ä¥¹¥Þ¥Û¤Î¥¹¥Ô¡¼¥«¡¼¤«¤éºÆÀ¸¤¹¤ëÌò³ä¤òô¤¤¤Þ¤¹¡£
»²¹Í¥µ¥¤¥È
Unity¸ø¼°¥Þ¥Ë¥å¥¢¥ë
AudioListener
https://docs.unity3d.com/ja/2019.4/Manual/class-Au...
¡¡¤³¤Î¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Ï¡¢¥Ò¥¨¥é¥ë¥¡¼¤Ë¤¢¤ë¤¤¤º¤ì¤«¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë£±¤Ä¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ì¤ÐÆ°ºî¤¹¤ë¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Ç¤¹¡£
¤¹¤Ç¤Ë Main Camera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢£²¤ÄÌܰʹߤΠAudioListener ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ÏÉÔÍפˤʤê¤Þ¤¹¡£
¤Þ¤¿£²¤Ä°Ê¾å¤Î AudioListener ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬Â¸ºß¤·¤Æ¤¤¤ë¤È¡¢·Ù¹ðʸ¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
¡¡¤Ä¤Å¤¤¤Æ¡¢Camera ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ÎÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡££µ¤Ä¤Î¹àÌܤò½çÈÖ¤ËÀßÄꤷ¤Þ¤¹¡£
¡¡£±¡¥Clear Flags ¤ÎÀßÄê¤ò Skybox => Solid Color ¤ËÊѹ¹¤·¤Þ¤¹¡£
¡¡£²¡¥¤½¤Î²¼¤Ë¤¢¤ë Culling Mask ¤ÎÀßÄê¤ò Everything => Àè¤Û¤ÉºîÀ®¤·¤¿¥ì¥¤¥ä¡¼¤Î¤ß¡Ê3D_Chara¡Ë¤ËÊѹ¹¤·¤Þ¤¹¡£
¡¡£³¡¥Projection ¤ÎÀßÄê¤Ï Perspective ¤Î¤Þ¤Þ¤Ç¤â¤è¤¤¤Ç¤¹¤¬¡¢Orthographic ¤Ë¤·¤Æ¤¤¤¿¤À¤¤¤Æ¤â¹½¤¤¤Þ¤»¤ó¡£
¡¡£´¡¥Clipping Planes ¤ÎÀßÄê¤Ï far ¤Ë¤Ä¤¤¤Æ¤Ï 1000 ¤âɬÍפ¢¤ê¤Þ¤»¤ó¤Î¤Ç¡¢ 10 ¤è¤ê¤âÂ礤ÊÃÍ(20 ¤Ê¤É)¤ËÀßÄꤷ¤Æ¤¤¤¿¤À¤±¤ì¤Ð¥¥ã¥é¤Ï±Ç¤ê¤Þ¤¹¤¬¡¢¤³¤ì¤ÏǤ°Õ¤Ç¤¹¡£
¡¡¡¡¡¡¤¿¤À¤· 10 ¥Ô¥Ã¥¿¥ê¤ËÀßÄꤹ¤ë¤È¥¥ã¥é¥â¥Ç¥ë¤¬¥¢¥Ë¥á¡¼¥·¥ç¥ó¤·¤¿ºÝ¤Ë°ìÉô¤¬±Ç¤é¤Ê¤¯¤Ê¤ë¤³¤È¤â¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢Êѹ¹¤¹¤ë¾ì¹ç¤Ë¤Ï¾¯¤Ê¤¯¤È¤â 15 °Ê¾å¤ËÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£
¡¡£µ¡¥ºÇ¸å¤Ë¡¢Target Texture ¤Î¥×¥í¥Ñ¥Æ¥£Íó¤Ë¡¢Àè¤Û¤ÉºîÀ®¤·¤¿ CharaRenderTexture ¤ò¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥µ¥¤¥ó¤·¤Æ¤¯¤À¤µ¤¤¡£
¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image01.seesaawiki.jp/i/o/i-school-memo/wstGhOCYW7.png)
¡¡³Æ¥×¥í¥Ñ¥Æ¥£¤Ë¤Ä¤¤¤Æ¤Ï²òÀâ¤ò¾Êά¤·¤Æ¤¤¤Þ¤¹¡£²¼µ¤Î¥Þ¥Ë¥å¥¢¥ë¤òÆɤó¤ÇÍý²ò¤ò¿¼¤á¤Æ¤¯¤À¤µ¤¤¡£
¾¤Ë¤âÎɤ¤µ»ö¤Î¥µ¥¤¥È¤¬Ê£¿ô¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¼«Ê¬¤ÇÄ´¤Ù¤Æ¤ß¤Þ¤·¤ç¤¦¡£
»²¹Í¥µ¥¤¥È
Unity¸ø¼°¥Þ¥Ë¥å¥¢¥ë
¥«¥á¥é
https://docs.unity3d.com/ja/2019.4/Manual/class-Ca...
¡¡Camera ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ÎÀßÄ꤬½ªÎ»¤·¤¿¤é¡¢CharaCamera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î°ÌÃÖ¤ò¥¥ã¥é¤¬±Ç¤ë°ÌÃ֤˰ÜÆ°¤·¤Þ¤¹¡£
Position.x ¤ò¥¥ã¥é¤ÈƱ¤¸ -10 ¤ËÀßÄꤷ¡¢Position.z ¤ò -10 ¤ËÀßÄꤷ¤Æ¡¢CharaCamera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î°ÌÃÖ¤ò¥¥ã¥é¥â¥Ç¥ë¤Î°ÌÃÖ¤è¤ê¤â¼êÁ°¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡ÁÐÊý¤Î¥ì¥¤¥ä¡¼¤ÎÀßÄ꤬Àµ¤·¤±¤ì¤Ð¡¢CharaCamera ¤Ë¥ï¡¼¥ë¥ÉºÂɸ¤Ë¤¤¤ë¥¥ã¥é¤¬±Ç¤ê¤Þ¤¹¡£
CharaCamera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/OiA0HQRHId.png)
Scene¥Ó¥å¡¼²èÁü¡¡Scene¥Ó¥å¡¼¤Î±¦²¼¤ÎCharaCamera¥Ó¥å¡¼¤Ë¥¥ã¥é¤¬±Ç¤Ã¤Æ¤¤¤ë
![](https://image02.seesaawiki.jp/i/o/i-school-memo/kIdIT7YtQ3.png)
¡¡¤³¤Î»þÅÀ¤Ç¤â¡¢¤Þ¤ÀGame¥Ó¥å¡¼¤Ë¤Ï¥¥ã¥é¤Ï±Ç¤ê¤Þ¤»¤ó¡£ºÇ¸å¤Ë CharaCamera ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¾ðÊó¤òÅê±Æ¤¹¤ë¤¿¤á¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¤Þ¤¹¡£
£¶¡¥Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤Æ RawImageChara ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¤Æ¡¢ÀßÄê¹Ô¤¦ ![](https://static.seesaawiki.jp/img/usr_second/common/icon_pen.gif)
¡¡Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¾å¤Ç±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤¡¢UI => RawImage ¤òÁªÂò¤·¤Þ¤¹¡£
RawImage ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬¥¢¥¿¥Ã¥Á¤µ¤ì¤¿¡¢¿·¤·¤¤ RawImage ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬ºîÀ®¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢Ì¾Á°¤ò RawImageChara ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
¥Ò¥¨¥é¥ë¥¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/FrJLvl0e4q.png)
RawImageChara ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/bba9UXFWmj.png)
Scene¥Ó¥å¡¼²èÁü¡¡Ãæ±û¤ËÇò¤¤²èÁü¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È
![](https://image01.seesaawiki.jp/i/o/i-school-memo/KtOlxGx4eF.jpg)
¡¡RawImage ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Ë¤¢¤ë Texture ¤ÎÀßÄê¤Ï¥¹¥×¥é¥¤¥È¥Æ¥¯¥¹¥Á¥ã°Ê³°¤Î²èÁü¤òÀßÄꤹ¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
¤³¤Îµ¡Ç½¤ò³èÍѤ¹¤ë¤³¤È¤Ç¡¢¥«¥á¥é¤¬ÉÁ²è¤·¤¿ RenderTexture ¤Î¾ðÊó¤ò¥Æ¥¯¥¹¥Á¥ã¤È¤·¤ÆUI¾å¤Ë£²£Ä²èÁü¤È¤·¤Æɽ¼¨¤¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
»²¹Í¥µ¥¤¥È
Unity¸ø¼°¥Þ¥Ë¥å¥¢¥ë
RawImage
https://docs.unity3d.com/ja/2019.4/Manual/script-R...
¡¡RawImage ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ÎÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£ºÇ½é¤Ë¡¢Raycast Target ¤Î¥Á¥§¥Ã¥¯¤ò³°¤·¤Æ¥ª¥Õ¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡¼¡¤Ë¡¢RawImage ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î Texture ¥×¥í¥Ñ¥Æ¥£Íó¤Ë¡¢CharaRenderTexture ¤ò¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥µ¥¤¥ó¤·¤Æ¤¯¤À¤µ¤¤¡£
¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤ÎºÇ²¼Ãʤˡ¢RawImageChara ¤È¤·¤Æ¡¢Texture¤Ë¥¥ã¥é¤Î¥¤¥á¡¼¥¸¤¬É½¼¨¤µ¤ì¤Æ¤¤¤ì¤ÐÀ®¸ù¤Ç¤¹¡£
¸«Åö¤¿¤é¤Ê¤¤¾ì¹ç¡¢Add Component ¥Ü¥¿¥ó¤è¤ê¤â²¼¤Ë¡¢RawImageChara ¤È¤¤¤¦¹àÌܤ¬¤¢¤ê¤Þ¤¹¤Î¤Ç¥¯¥ê¥Ã¥¯¤·¤Æ¤¯¤À¤µ¤¤¡£¥Æ¥¯¥¹¥Á¥ã¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
¡¡¤Þ¤À¾®¤µ¤¤¥µ¥¤¥º¤Ç¤¹¤¬¡¢¤Ä¤¤¤Ë Game¥Ó¥å¡¼¤Ë¥¥ã¥é¤¬±Ç¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¡£
RawImageChara ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¢¥µ¥¤¥ó¸å¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/hfnfwlgrJa.png)
Game¥Ó¥å¡¼²èÁü
![](https://image01.seesaawiki.jp/i/o/i-school-memo/b7Hp1DCuUN.png)
¡¡ºÇ¸å¤Ë¡¢RectTransfom ¤Î Scale ¤ÎÃͤòÊѹ¹¤·¡¢¼ê½ç¡Ú£¶¡Û¤ÎCanvas Æâ¤ËÀ½ºî¤·¤¿¥¥ã¥é¤ÎÂ礤µ(imgChara)¤È¥µ¥¤¥º¤ò¹ç¤ï¤»¤Þ¤¹¡£
Scale ¤ò ¡Ê1, 1, 1¡Ë => (3, 3, 3) ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
RawImageChara ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
![](https://image01.seesaawiki.jp/i/o/i-school-memo/RKjDq1DrDU.png)
Scene¥Ó¥å¡¼²èÁü
![](https://image02.seesaawiki.jp/i/o/i-school-memo/YcKzRfc5tB.jpg)
Game¥Ó¥å¡¼²èÁü
![](https://image01.seesaawiki.jp/i/o/i-school-memo/voPDjB6VO6.png)
¡¡°Ê¾å¤Ç´°À®¤Ç¤¹¡£
¡¡¥²¡¼¥à¤ò¼Â¹Ô¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£Scene¥Ó¥å¡¼¤Î Canvas ¤ÎÎ٤ˤ¤¤ëÂ礤ʥ¥ã¥é¥â¥Ç¥ë¤Î¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎÆ°¤¤¬Canvas Æâ¤ËÈ¿±Ç¤µ¤ì¤Æ¡¢
¥¥ã¥é¤¬¥¢¥Ë¥á¡¼¥·¥ç¥ó¤·¤Æ¤¤¤ì¤ÐÀ©¸æÀ®¸ù¤Ç¤¹¡£Game¥Ó¥å¡¼¤È Scene¥Ó¥å¡¼¤ÎξÊý¤Ç³Îǧ¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
¡ã¼Â¹ÔÆ°²è¡ä
https://gyazo.com/d822a4422e0a4caa6ccfd6fb11877ef6
¡¡ºÇ¸å¤Ë¡¢¥¢¥Ë¥á¡¼¥·¥ç¥ó¤Î½é´üÀßÄê¤ò¹Ô¤¤¤Þ¤·¤ç¤¦¡£
¡¡¸½ºß¤Ï¥²¡¼¥à¤ò¼Â¹Ô¤¹¤ë¤È¡¢¥¥ã¥é¥â¥Ç¥ë¤¬Ê⤯¥¢¥Ë¥á¡¼¥·¥ç¥ó¤Î¥ë¡¼¥×ºÆÀ¸¤ò¹Ô¤¦¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¤³¤ì¤Ï¡¢¥²¡¼¥à¤ò¼Â¹Ô»þ¤Ë½é´üÃͤȤ·¤Æ¡¢Ê⤯¥¢¥Ë¥á¡¼¥·¥ç¥ó¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¤¿¤á¤Ç¤¹¡£
¡¡¤³¤Î¤Þ¤Þ¤Ç¤â¤è¤¤¤Ç¤¹¤¬¡¢¤³¤Î¥¥ã¥é¥â¥Ç¥ë¤Ë¤ÏÂÔµ¡ÍѤΥ¢¥Ë¥á¡¼¥·¥ç¥ó¤â¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢½é´üÃͤΥ¢¥Ë¥á¡¼¥·¥ç¥ó¤òÊ̤Υ¢¥Ë¥á¡¼¥·¥ç¥ó¤ËÊѹ¹¤·¤Þ¤¹¡£
¡¡Unity¤Îº¸¾å¤Ë¤¢¤ë¥á¥Ë¥å¡¼¤ÎÃ椫¤é Window => Animation => Animator ¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
Scene¥Ó¥å¡¼¤äGame¥Ó¥å¡¼¤Î¤è¤¦¤Ê Animator¥Ó¥å¡¼¤¬¥¨¥Ç¥£¥¿¡¼¤Î¥ì¥¤¥¢¥¦¥ÈÆâ¤ËÄɲ䵤ì¤Þ¤¹¡£
Animator¥Ó¥å¡¼¡¦¥¿¥Ö(¤¤¤º¤ì¤«¤Î¥Ó¥å¡¼¡¦¥¿¥Ö¤ÎÎÙ¤ËÄɲ䵤ì¤ë)
![](https://image02.seesaawiki.jp/i/o/i-school-memo/xcoKQ_TYxV.png)
¡¡¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ÎÀÚ¤êÂؤ¨¤ÎÀßÄê¤Ï¡¢¤³¤ÎAnimator¥Ó¥å¡¼¤ÎÃæ¤Ç¹Ô¤¤¤Þ¤¹¡£Â¾¤Î¥¿¥Ö¤È°ì½ï¤Ç¤¤¤Ä¤Ç¤âÀÚ¤êÂؤ¨¤¬½ÐÍè¤Þ¤¹¡£
¡¡ÀßÄê¤ò¹Ô¤¦¤¿¤á¤Ë¤Ï¡¢ÂоݤȤʤ륲¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥Ò¥¨¥é¥ë¥¡¼¤ÇÁªÂò¤·¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¡¡¥Ò¥¨¥é¥ë¥¡¼¤Ë¤¢¤ë¥¥ã¥é¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤¿¾õÂ֤ˤ·¤Æ¤¯¤À¤µ¤¤¡£(¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤Ëɽ¼¨¤µ¤ì¤Æ¤¤¤ë¾õÂÖ)
¤³¤Î¾õÂ֤ˤʤë¤È¡¢¥¥ã¥é¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¡¢Animator ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤ëAnimator¤Î¾ðÊó¤¬Animator¥Ó¥å¡¼Æâ¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£
¡¡Animator¥Ó¥å¡¼¤ÎÁàºî¤Ç¤¹¤¬¡¢¥Þ¥¦¥¹¤Î¥Û¥¤¡¼¥ë¥Ü¥¿¥ó¤ò²¡¤·¤Ê¤¬¤é¥Þ¥¦¥¹¤ò°ÜÆ°¤µ¤»¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢Animator¥Ó¥å¡¼¤ÎÃæ¤ò°ÜÆ°¤Ç¤¤Þ¤¹¡£
¡¡¥¥ã¥é¤òÁªÂò¤·¤Æ Animator ¥Ó¥å¡¼¤ò¸«¤ë¤È¡¢¼¡¤Î¤è¤¦¤Ê²èÌ̤ˤʤê¤Þ¤¹¡£
Êѹ¹Á°
![](https://image01.seesaawiki.jp/i/o/i-school-memo/XwoiyKpojy.png)
¡¡Entry ¤È¤¤¤¦¥¢¥¤¥³¥ó(State¡Ê¥¹¥Æ¡¼¥È¡Ë¤È¤¤¤¤¤Þ¤¹)Éôʬ¤«¤é walk ¤È¤¤¤¦Éôʬ¤ËÌð°õ¤¬¤Ä¤Ê¤¬¤Ã¤Æ¤¤¤ë¤Î¤¬Ê¬¤«¤ê¤Þ¤¹¡£
¤³¤Î Entry ¤«¤é½Ð¤Æ¤¤¤ë ¢ª ¤ÎÀè¤Ë¤¢¤¿¤ë¥¹¥Æ¡¼¥È¤ÎÉôʬ¤¬¡¢¥²¡¼¥à¤ò¼Â¹Ô¤·¤¿ºÝ¤Î½é´üÃͤΥ¢¥Ë¥á¡¼¥·¥ç¥ó¤È¤Ê¤ê¤Þ¤¹¡£
¡¡¤³¤ÎÀßÄê¤ò¡¢walk ¤Î²¼¤Ë¤¢¤ë¡¢idle ¤ËÊѹ¹¤·¤Þ¤¹¡£
¡¡Entry ¤Î¥¹¥Æ¡¼¥È¤òº¸¥¯¥ê¥Ã¥¯¤·¤ÆÁªÂò¤·¡¢¤½¤Î¾å¤Ç±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤¡¢Set StateMachine Default State ¤È¤¤¤¦¥³¥Þ¥ó¥É¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢¥²¡¼¥à³«»Ï¤ÈƱ»þ¤Ë¡¢Entry ¤ÎÀè¤ò¤É¤Î¥¢¥Ë¥á¡¼¥·¥ç¥ó¤Ë¤¹¤ë¤«ÀßÄꤹ¤ë¤â¤Î¤Ç¤¹¡£
¡¡¥³¥Þ¥ó¥É¤òÁªÂò¤¹¤ë¤È Entry ¥¹¥Æ¡¼¥È¤«¤éÌð°õ¤¬½Ð¤Þ¤¹¤Î¤Ç¡¢¤³¤ÎÌð°õ¤ò idle ¥¹¥Æ¡¼¥È¤Þ¤Ç°ÜÆ°¤µ¤»¤Æ¤¤¤Ã¤Æ¡¢º¸¥¯¥ê¥Ã¥¯¤ò idle ¥¹¥Æ¡¼¥È¤Î¾å¤Ç²¡¤·¤Þ¤¹¡£
Ìð°õ¤¬ Entyr => idle ¤Ë¤Ä¤Ê¤¬¤Ã¤Æ¤¤¤ì¤ÐÀ®¸ù¤Ç¤¹¡£walk ¤Ø¤ÎÌð°õ¤¬¤Ê¤¯¤Ê¤Ã¤¿¤È»×¤¤¤Þ¤¹¡£
Êѹ¹¸å
![](https://image02.seesaawiki.jp/i/o/i-school-memo/3yCQKgJhSt.png)
¡¡¥¹¥Æ¡¼¥È¤È¥¹¥Æ¡¼¥È¤ò¤Ä¤Ê¤°Ìð°õ¤ò¥È¥é¥ó¥¸¥·¥ç¥ó¤È¤¤¤¤¡¢¥È¥é¥ó¥¸¥·¥ç¥ó¤Ë¤è¤Ã¤Æ¡¢¥¹¥Æ¡¼¥È¤È¥¹¥Æ¡¼¥È¤¬ÀÚ¤êÂؤï¤ë¤³¤È¤ò¥¹¥Æ¡¼¥È¤ÎÁ«°Ü¡Ê¤»¤ó¤¤¡Ë¤È¤¤¤¤¤Þ¤¹¡£
¤³¤ì¤Ï¤Þ¤¿³Ø½¬¤·¤Þ¤¹¤¬¡¢³Ð¤¨¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£
¡¡¤³¤ì¤Ç¥²¡¼¥à¤Î³«»Ï¤ÈƱ»þ¤Ë¡¢walk ¥¢¥Ë¥á¡¼¥·¥ç¥ó¤Ç¤Ï¤Ê¤¯¡¢idle ¥¢¥Ë¥á¡¼¥·¥ç¥ó¤¬ºÆÀ¸¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¡£
¥²¡¼¥à¤ò¼Â¹Ô¤·¤Æ³Îǧ¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
¡ã¼Â¹ÔÆ°²è¡ä
https://gyazo.com/6189aaf89f7d091c766c2876cd5cdc09
¡¡¥²¡¼¥à¼Â¹ÔÃæ¤ËGame¥Ó¥å¡¼¤Î¾¤Ë¤â¡¢ÂоݤΥ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤Æ¤«¤éAnimator ¥Ó¥å¡¼¤ò¸«¤ë¤³¤È¤Ç¡¢¥¹¥Æ¡¼¥È¤ÎÁ«°Ü¤¬³Îǧ¤Ç¤¤Þ¤¹¡£
¡¡°Ê¾å¤Ç¤³¤Î¼ê½ç¤Ï½ªÎ»¤Ç¤¹¡£
¡¡
¡¡¼¡¤Ï¡¡¼ê½ç£µ¡¡¡Ý¥Ð¥ì¥Ã¥È¤ÎºîÀ®¡Ý¡¡¤Ç¤¹¡£
- ¥«¥Æ¥´¥ê¡§
- ¿Ê³Ø/¥¹¥¯¡¼¥ë
- ¥×¥í¥°¥é¥ß¥ó¥°
¥³¥á¥ó¥È¤ò¤«¤¯