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

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

£±£³¡¥CanvasÆâ¤ËUIÉôÉʤòºîÀ®¤¹¤ë­£¡Ê¥­¥ã¥é¤Î̾Á°¤òɽ¼¨¤¹¤ë¥¦¥¤¥ó¥É¥¦¤òÍÑ°Õ¤¹¤ë¡Ë
£±£´¡¥enum¡ÊÎóµó·¿¡Ë¥¯¥é¥¹¤òºîÀ®¤·¡¢¥­¥ã¥é¤Î̾Á°¤òÅÐÏ¿¤¹¤ë
£±£µ¡¥¥á¥Ã¥»¡¼¥¸É½¼¨ÍѤΥ¹¥¯¥ê¥×¥È¤òºîÀ®¤¹¤ë­¥¡Êɽ¼¨¤µ¤ì¤Æ¤¤¤ë¥á¥Ã¥»¡¼¥¸¤ÈƱ´ü¤¹¤ë·Á¤Ç¥­¥ã¥é¤Î̾Á°¤òɽ¼¨¤¹¤ë¡Ë


£±£³¡¥CanvasÆâ¤ËUIÉôÉʤòºîÀ®¤¹¤ë­£¡Ê¥­¥ã¥é¤Î̾Á°¤òɽ¼¨¤¹¤ë¥¦¥¤¥ó¥É¥¦¤òÍÑ°Õ¤¹¤ë¡Ë

¡¡
¡¡CancasÆâ¤ÎMessageWindow¤Ë¥á¥Ã¥»¡¼¥¸É½¼¨Ãæ¤Î¥­¥ã¥é¤Î̾Á°¤òɽ¼¨¤Ç¤­¤ë¤è¤¦¤Ë¤·¤Æ¤¤¤­¤Þ¤¹¡£

¡¡MessageWindow¾å¤Ë¤Æ¥á¥Ë¥å¡¼¤òɽ¼¨¤·¡¢ UI => Image ¤òÁªÂò¤·¡¢Ì¾Á°¤ò imgCharaName ¤ËÊѹ¹¤·¤Þ¤¹¡£
¤³¤Á¤é¤Ï̾Á°É½¼¨¤ÎÇØ·Ê¥¤¥á¡¼¥¸¤Ë¤Ê¤ê¤Þ¤¹¡£




¡¡Â³¤¤¤Æ¡¢ºîÀ®¤·¤¿imgCharaName¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¾å¤Ç¥á¥Ë¥å¡¼¤òɽ¼¨¤·¡¢ UI => Text¤òÁªÂò¡¢Ì¾Á°¤ò txtCharaNameType ¤ËÊѹ¹¤·¤Þ¤¹¡£
¤³¤Á¤é¤¬¥­¥ã¥é¤Î̾Á°¤òɽ¼¨¤¹¤ëText¤Ë¤Ê¤ê¤Þ¤¹¡£




¡¡¥Ò¥¨¥é¥ë¥­¡¼¾å¤Ï°Ê²¼¤Î¤è¤¦¤Ê¾õÂ֤ˤʤäƤ¤¤ë¤«¡¢³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£



Text¤ÎOutline¤ò¥­¥ì¥¤¤Ëɽ¼¨¤¹¤ë


¡¡Github¤Ë¸ø³«¤µ¤ì¤Æ¤¤¤ëCircleOutline.cs¤òÍøÍѤ·¤Æ¤ß¤Þ¤·¤ç¤¦¡£
¤³¤Î¥¹¥¯¥ê¥×¥È¤òtxtCharaNameType¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤¹¤ë¤³¤È¤Ç¡¢Ê¸»ú¤ÎÎسԤò¥­¥ì¥¤¤Ëɽ¼¨¤·¤Æ¤¯¤ì¤ëµ¡Ç½¤¬Äɲ䵤ì¤Þ¤¹¡£

CircleOutline.cs

https://gist.github.com/FreelyApps/e9f3f4a4d89882b...

¡¡
¡¡ÀßÄêÊýË¡¤Ï¡¢EffectDistance¤Î¿ô»ú¤ò4¡Á8Á°¸å¤Ë¤·¡¢N Effect Number¤â4¡Á12Á°¸å¤Ë¤¹¤ë¤Èʸ»ú¤ÎÎسԤò±ï¼è¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£
¤¢¤Þ¤ê¿ô»ú¤¬Â礭¤¤¤Èʸ»ú¼«ÂΤ¬¤Ä¤Ö¤ì¤Æ¤·¤Þ¤¦¤¿¤á¡¢Æɤߤ䤹¤¯¤ÆåºÎï¤Ê¥¢¥¦¥È¥é¥¤¥ó¤Ë¤Ê¤ë¤è¤¦¤Ë¿§¡¹¤È»î¤·¤Æ¤ß¤Þ¤·¤ç¤¦¡£



£±£´¡¥enum¡ÊÎóµó·¿¡Ë¥¯¥é¥¹¤òºîÀ®¤·¡¢¥­¥ã¥é¤Î̾Á°¤òÅÐÏ¿¤¹¤ë


¡¡¥²¡¼¥à¤ËÅо줹¤ë¥­¥ã¥é¥¯¥¿¡¼¤Î̾Á°¤òËè²óµ­½Ò¤·¤Æ¤¤¤Æ¤ÏÂçÊѤǤ¹¡£¤½¤³¤ÇÎóµó·¿¤È¤¤¤¦µ¡Ç½¤ò»È¤Ã¤Æ¥²¡¼¥à¤ËÅо줹¤ë¥­¥ã¥é¤Î̾Á°¤òºîÀ®¤·¡¢ÅÐÏ¿¤·¤Æ¤ª¤­¤Þ¤·¤ç¤¦¡£¡¡
Ëè²óʸ»úÎó¤Ç»ØÄꤷ¤Æ¤¤¤Æ¤ÏÂǤÁ´Ö°ã¤¤¤Ë¤è¤ë¥¨¥é¡¼¤âµ¯¤³¤ê¤ä¤¹¤¤¤Ç¤¹¤¬¡¢Enum·¿¤Ç»ØÄꤷ¤¿¾ì¹ç¡¢ÅÐÏ¿¤µ¤ì¤Æ¤¤¤ëÆâÍƤǤ·¤«ÁªÂò¤¬½ÐÍè¤Ê¤¯¤Ê¤ê¤Þ¤¹¤Î¤Ç´Ö°ã¤¨¤ë¤³¤È¤â¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£

¡¡¤³¤Îµ¡Ç½¤ò»È¤¤¡¢²ñÏÃÃæ¤Î¥­¥ã¥é¤Î̾Á°¤òɽ¼¨¤·¤¿¤ê¡¢¸å¤Ç¼ÂÁõ¤¹¤ë¥­¥ã¥é¤Î¥¤¥á¡¼¥¸²èÁü¤òɽ¼¨¤µ¤»¤ëºÝ¤ËÍøÍѤ·¤Æ¤¤¤­¤Þ¤¹¡£

¡¡Scripts¥Õ¥©¥ë¥ÀÆâ¤Ç¥á¥Ë¥å¡¼¤òɽ¼¨¤·¡¢Create => C# Script ¤òÁªÂò¡¢Ì¾Á°¤ò CHARA_NAME_TYPE ¤ËÊѹ¹¤·¤Þ¤¹¡£enum¤Î¤ß¤Î¥¹¥¯¥ê¥×¥È¤Î¤¿¤á¡¢Â¾¤Î¥¹¥¯¥ê¥×¥È¤È¤Ï°Û¤Ê¤êclass¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£¤³¤¦¤¤¤Ã¤¿¾ì¹ç¤Ï¡¢¥Õ¥¡¥¤¥ë̾¤ò¤¹¤Ù¤ÆÂçʸ»ú¤Ê¤É¤Ë¤·¤Æ¤ª¤¯¤³¤È¤Ç¡¢Â¾¤Î¥¹¥¯¥ê¥×¥È¤È¤Îº¹Ê̲½¤¬¿Þ¤ì¤Þ¤¹¡£
¤â¤Á¤í¤ó¡¢Â¾¤Î¥¹¥¯¥ê¥×¥È¤ÈƱ¤¸Ì¿Ì¾µ¬Â§¤Ç̾Á°¤ò¤Ä¤±¤Æ¤âÌäÂê¤Ï¤¢¤ê¤Þ¤»¤ó¡£
¡¡

¡¡<= ¥¯¥ê¥Ã¥¯¤¹¤ë¤È¥µ¥ó¥×¥ë¥³¡¼¥É¤¬³«¤­¤Þ¤¹¡£


¡¡¤³¤Î¥¹¥¯¥ê¥×¥È¤Ï¾¤Î¥¹¥¯¥ê¥×¥È¤È¤Ï°ã¤¤¡¢MonoBehaviour¥¯¥é¥¹¤ò·Ñ¾µ¤·¤Æ¤¤¤Þ¤»¤ó¡£¤½¤Î¤¿¤á¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¤¬
MonoBehaviour¤ò·Ñ¾µ¤·¤Æ¤¤¤Ê¤¤¤³¤Îenum¤Ï¡¢ÊÑ¿ô¤ËÂåÆþ¤·¤Ê¤¯¤Æ¤â¡¢¤É¤Î¥¯¥é¥¹¤«¤é¤Ç¤â»²¾È¤¬½ÐÍè¤Þ¤¹¡£¼ÂºÝ¤Ë»È¤Ã¤Æ¤ß¤Æ»î¤·¤Æ¤ß¤Þ¤·¤ç¤¦¡£

£±£µ¡¥¥á¥Ã¥»¡¼¥¸É½¼¨ÍѤΥ¹¥¯¥ê¥×¥È¤òºîÀ®¤¹¤ë­¥¡Êɽ¼¨¤µ¤ì¤Æ¤¤¤ë¥á¥Ã¥»¡¼¥¸¤ÈƱ´ü¤¹¤ë·Á¤Ç¥­¥ã¥é¤Î̾Á°¤òɽ¼¨¤¹¤ë¡Ë


¡¡¡Ú£±£³¡Û¤ÇºîÀ®¤·¤¿¥­¥ã¥é¤Î̾Á°¤òɽ¼¨¤¹¤ëText¥³¥ó¥Ý¡¼¥Í¥ó¥È¤È¡¢¥á¥Ã¥»¡¼¥¸É½¼¨ÍѤΥ¹¥¯¥ê¥×¥È¤Ç¤¢¤ëTextMessageViewer¥¹¥¯¥ê¥×¥È¤È¤òɳ¤Å¤±¤·¤Æ
¥á¥Ã¥»¡¼¥¸¤Îɽ¼¨¤Ë¹ç¤ï¤»¤Æ¡¢¥­¥ã¥é¤Î̾Á°¤òɽ¼¨¤¹¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£

¡¡TextMessageViewer¤ò½¤Àµ¤·¤Æ¤¤¤­¤Þ¤¹¤Î¤Ç¡¢¥À¥Ö¥ë¥¯¥ê¥Ã¥¯¤·¤ÆTextMessageViewer¥¹¥¯¥ê¥×¥È¤ò³«¤¤¤Æ¤¯¤À¤µ¤¤¡£
½¤Àµ²Õ½ê¤Ï¤Ê¤¯¡¢public¤Î¥á¥ó¥ÐÊÑ¿ô¤ÎÀë¸À¤ò£²¤ÄÄɲä·¡¢DisplayMessage¥á¥½¥Ã¥ÉÆâ¤Ë¥á¥Ã¥»¡¼¥¸¤Ë¹ç¤ï¤»¤Æ¥­¥ã¥é¤Î̾Á°¤òɽ¼¨¤¹¤ë½èÍý¤ÎÄɲ䬤¢¤ê¤Þ¤¹¡£
¤³¤³¤Ç¤Ï³ºÅö¤Î²Õ½ê¤Î¤ß¤òÈ´¿è¤·¤Æµ­ºÜ¤·¤Æ¤¢¤ê¤Þ¤¹¡£

¡¡<= ¥¯¥ê¥Ã¥¯¤¹¤ë¤È¥µ¥ó¥×¥ë¥³¡¼¥É¤¬³«¤­¤Þ¤¹¡£


¡¡¥¨¥é¡¼¤¬¤Ê¤¯µ­ºÜ¤Ç¤­¤¿¤éTextMessageViewer¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡Ý¤ò³Îǧ¤·¤Þ¤·¤ç¤¦¡£
public¤ÇÄɲä·¤¿¹àÌܤ¬2¤«½êÁý¤¨¤Æ¤¤¤ë¤Ï¤º¤Ç¤¹¡£



¡¡¤Þ¤º¤ÏcharaTypes¤Ë¥­¥ã¥é¤Î̾Á°¤ò²¾ÅÐÏ¿¤·¤Æ¡¢½èÍý¤¬Àµ¾ï¤ËÆ°¤¯¤«¤É¤¦¤«¤ò¥Ç¥Ð¥Ã¥°¤ò¤·¤Þ¤·¤ç¤¦¡£
charaTypes¤ÏMessages¤ÈƱ¤¸¤ÇÇÛÎó¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢¤Ï¤¸¤á¤ÏSize 0 ¤ËÀßÄꤵ¤ì¤Æ¤¤¤Þ¤¹¡£
Size¤ÏMessages¤ÎÃͤÈƱ¤¸¿ô¤ËÀßÄê¤ò¤·¤Þ¤¹¡£²èÁüÎã¤Î¾ì¹ç¡¢Messages¤ÎSize¤¬ 3 ¤Ç¤¹¤Î¤Ç¡¢charaTypes¤ÎSize¤â 3 ¤ËÀßÄꤷ¤Þ¤¹¡£

¡¡Element¤¬0¡Á2¤Þ¤ÇÄɲ䵤ì¤Þ¤¹¤Î¤Ç¡¢¤³¤Á¤é¤Ï¥×¥ë¥À¥¦¥ó¥á¥Ë¥å¡¼¤Ë¤Ê¤Ã¤Æ¤¤¤Æ¡¢Enum¤ÇºîÀ®¤·¤¿¥­¥ã¥é¤Î̾Á°¤òÁªÂò½ÐÍè¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
¤Þ¤º¤ÏŬÅö¤ËÁªÂò¤·¤Þ¤·¤ç¤¦¡£¤³¤ÎElement¤ÎÈÖ¹æ¤ÈMessages¤ÎElement¤ÎÈÖ¹æ¤È¤¬¥ê¥ó¥¯¤·¤Æ¤¤¤Þ¤¹¡£

¡¡Â³¤¤¤Æ¡¢txtCharaType¤ÎÉôʬ¤Ë¡¢¥­¥ã¥é¤Î̾Á°¤òɽ¼¨¤µ¤»¤¿¤¤Text¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤ë¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥¢¥µ¥¤¥ó¤·¤Þ¤¹¡£
¥Ò¥¨¥é¥ë¥­¡¼¾å¤Ë¤¢¤ëtxtCharaNameType¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥µ¥¤¥ó¤·¤Þ¤·¤ç¤¦¡£

¡¡¤³¤ì¤Ç¥­¥ã¥é¤Î̾Á°¤òɽ¼¨¤µ¤»¤ë½èÍý¤È¡¢É½¼¨¤µ¤»¤ëText¥³¥ó¥Ý¡¼¥Í¥ó¥È¤È¤¬É³¤Å¤±¤µ¤ì¤Þ¤·¤¿¡£
¡¡



¡¡¼Â¹Ô¤·¤Æ¡¢¥á¥Ã¥»¡¼¥¸¤Î¿ô¤Ë¹ç¤ï¤»¤Æ¥­¥ã¥é¤Î̾Á°¤¬É½¼¨¤µ¤ì¡¢¼¡¤Î¥á¥Ã¥»¡¼¥¸¤Îɽ¼¨¤Ë¹ç¤ï¤»¤Æ
¥­¥ã¥é¤Î̾Á°¤¬Êѹ¹¤µ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«¤ò½çÈÖ¤Ëɽ¼¨¤µ¤»¤Æ³Îǧ¤ò¤·¤Æ¤ß¤Þ¤·¤ç¤¦¡£


https://gyazo.com/d4fb383bd7b2c85cfe34919a576a4b62

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


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

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

Menu


´ðÁÃ

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

private



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

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