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



Àß·×

¡¡
¡¡°ìÄê¤Î»þ´Ö°ÊÆâ¤ËŨ¤ËÂФ·¤ÆϢ³¤Ç¹¶·â¤ò¹Ô¤¤¥Ò¥Ã¥È¤·¤¿ºÝ¤Ë¡¢¤½¤Î¥Ò¥Ã¥È¤·¤¿¿ô¤ò¥³¥ó¥Ü¿ô¤È¤·¤Æ²Ã»»¤·¡¢UI¤È¤·¤Æ²èÌ̤Ëɽ¼¨¤¹¤ë½èÍý¤ò¼ÂÁõ¤·¤Þ¤¹¡£
¥³¥ó¥Ü¿ô¤Îɽ¼¨ÍѤΥ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥×¥ì¥Õ¥¡¥Ö¤ÇºîÀ®¤·¤Æ¤ª¤­¡¢¤½¤ì¤ò¥³¥ó¥Ü¤¬È¯À¸¤·¤¿¥¿¥¤¥ß¥ó¥°¤ÇÀ¸À®¤¹¤ë¤³¤È¤Ç¥Ò¥Ã¥È¿ô¤òɽ¼¨¤¹¤ëÀ߷פȤ·¤Þ¤¹¡£

¡¡¤³¤Îɽ¼¨¤¬¾Ã¤¨¤ë¤Þ¤Ç¤Î»þ´Ö¤ò¥³¥ó¥Ü¿ô¤Î¤Ä¤Ê¤¬¤ë»þ´Ö¤È¤·¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢¤³¤Îɽ¼¨¤¬¾Ã¤¨¤ëÁ°¤Ë¹¶·â¤ò¤Ä¤Ê¤²¤ÆÅö¤Æ¤Æ¤â¤é¤è¤¦¤ËÀïË¡¤ò¹Í¤¨¤Æ¤â¤é¤¦¤³¤È¤Ë¤â¤Ê¤ê¤Þ¤¹¡£


¡ã¼ÂÁõÆ°²è¡¡ÀßÄꤷ¤¿»þ´Ö°ÊÆâ¤À¤È¥³¥ó¥Ü¿ô¤¬²Ã»»¤µ¤ì¤ë¡£»þ´Ö¤òĶ¤¨¤ë¤È£±¤ËÌá¤ë¡£½ù¡¹¤Ë¾Ã¤¨¤ë(¾Ã¤¨¤ë¤Þ¤Ç¤À¤È²Ã»»¤µ¤ì¤ë)¡ä
https://gyazo.com/d4439eba4b64bb0abe9460acedc37917


¡ã¼ÂÁõÆ°²è¡¡¥³¥ó¥Ü¿ô¤¬Áý¤¨¤ë¤Û¤Éɽ¼¨¤¬¤À¤ó¤À¤óÂ礭¤¯¤Ê¤ë¡ä
https://gyazo.com/961f12003b2e6c9ac48f2b383827ec93



¼ÂÁõ¤Î¼ê½ç


¡¡À߷פ˴ð¤Å¤­¡¢°Ê²¼¤Î¼ê½ç¤Ç¼ÂÁõ¤ò¹Ô¤¤¤Þ¤¹¡£Ä¹¤¤¤¿¤á¡¢¤³¤Î¼ê½ç¤Ç¤Ï¡Ú£±¡Û¡Á¡Ú£²¡Û¤Þ¤Ç¤ò¼ÂÁõ¤·¤Þ¤¹¡£

¡¡£±¡¥¥³¥ó¥Ü¿ôɽ¼¨ÍѤΥª¥Ö¥¸¥§¥¯¥È(ComboDetail)¤òºîÀ®¤·¤Æ¥×¥ì¥Õ¥¡¥Ö¤Ë¤¹¤ë
¡¡£²¡¥ComboDetail ¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¤Æ¡¢ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤·¤ÆÀßÄꤹ¤ë
---- ¤³¤³¤Þ¤Ç ----
¡¡£³¡¥UIManager ¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¤ÆÀßÄê¤ò¹Ô¤¦
¡¡£´¡¥PlayerController ¥¹¥¯¥ê¥×¥È¤òºîÀ®¤ò½¤Àµ¤·¤Æ¡¢¥³¥ó¥Ü¤ÎȯÀ¸½èÍý¤òÄɲ乤ë
¡¡£µ¡¥¥²¡¼¥à¤ò¼Â¹Ô¤·¤ÆÆ°ºî¤ò³Îǧ¤¹¤ë


¿·¤·¤¯³Ø½¬¤¹¤ëÆâÍÆ


¡¡¿·¤·¤¯³Ø½¬¤¹¤ëÆâÍƤǤ¹¡£

¡¡¡¦RequireComponent°À­
¡¡¡¦CircleOutline


£±¡¥¥³¥ó¥Ü¿ôɽ¼¨ÍѤΥª¥Ö¥¸¥§¥¯¥È(ComboDetail)¤òºîÀ®¤·¤Æ¥×¥ì¥Õ¥¡¥Ö¤Ë¤¹¤ë

£±¡¥¿á¤­½Ð¤·ÍѤβèÁü¤ò¥¤¥ó¥Ý¡¼¥È¤¹¤ë


¡¡ÌµÎÁ¥µ¥¤¥È¤Ê¤É¤«¤é¡¢¿á¤­½Ð¤·ÍѤΥ¤¥á¡¼¥¸²èÁü¤ò¥À¥¦¥ó¥í¡¼¥É¤·¡¢Unity¤Ø¥¤¥ó¥Ý¡¼¥È¤·¤Þ¤¹¡£
³ÈÄ¥»Ò¤Ë¤Ï PNG ¥Õ¥¡¥¤¥ë¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£

»²¹Í¥µ¥¤¥È
¥Õ¥­¥À¥·¥Ç¥¶¥¤¥óÍÍ
https://fukidesign.com/


£²¡¥¥Õ¥©¥ó¥È¤ò¥¤¥ó¥Ý¡¼¥È¤¹¤ë


¡¡¥Õ¥©¥ó¥È¤òÊѹ¹¤¹¤ë¾ì¹ç¤Ë¤Ï¡¢ÌµÎÁ¥µ¥¤¥È¤«¤é¥Õ¥©¥ó¥È¤ò¥À¥¦¥ó¥í¡¼¥É¤·¤Æ¡¢Unity¤Ø¥¤¥ó¥Ý¡¼¥È¤·¤Þ¤¹¡£
Unity ¤Ç¤Ï¡¢otf ¤« ttf ³ÈÄ¥»Ò¤Î¥Õ¥©¥ó¥È¡¦¥Õ¥¡¥¤¥ë¤¬ÍøÍѤǤ­¤Þ¤¹¡£


»²¹Í¥µ¥¤¥È
Unity¸ø¼°¥Þ¥Ë¥å¥¢¥ë
¥Õ¥©¥ó¥È



¡¡¥Õ¥©¥ó¥È¤Î¥¤¥ó¥Ý¡¼¥ÈÊýË¡¤â²èÁü¤ä¥ª¡¼¥Ç¥£¥ª¥Õ¥¡¥¤¥ë¤Î¾ì¹ç¤ÈƱ¤¸¤Ç¤¹¡£
²òÅव¤ì¤Æ¤¤¤Ê¤¤¥Õ¥¡¥¤¥ë¤Ï¥¤¥ó¥Ý¡¼¥È¤Ç¤­¤Þ¤»¤ó¤Î¤Ç¡¢²òÅष¤Æ¤«¤é¥¤¥ó¥Ý¡¼¥È¤·¤Þ¤¹¡£

¡¡²òÅष¤¿ otf ¥Õ¥¡¥¤¥ë¤«¡¢ttf ¥Õ¥¡¥¤¥ë¤ò Unity ¤Ø¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤¹¤ì¤Ð¥¤¥ó¥Ý¡¼¥È¤µ¤ì¤Þ¤¹¡£
¥¤¥ó¥Ý¡¼¥È¤¹¤ëºÝ¤Ë¤Ï»öÁ°¤Ë Fonts ¥Õ¥©¥ë¥À¤òºîÀ®¤·¤Æ¤ª¤¤¤Æ¡¢¤½¤ÎÃæ¤Ë¥¤¥ó¥Ý¡¼¥È¤¹¤ë¤È¤è¤¤¤Ç¤·¤ç¤¦¡£


Fonts ¥Õ¥©¥ë¥À



¡¡±Ñ¿ô»ú¤À¤±¤ò°·¤¦¥Õ¥©¥ó¥È¤â¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢¿§¡¹¤Ê¥Õ¥©¥ó¥È¤òõ¤·¤Æ¡¢¼«Ê¬¤Î¹¥¤ß¤ÇÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£


£³¡¥Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤¹¤ë


¡¡CanvasÆâ¤Ë¥³¥ó¥Ü¿ôɽ¼¨ÍѤΥª¥Ö¥¸¥§¥¯¥È(°Ê²¼¡¢ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È)¤òºîÀ®¤·¤Æ¤¤¤­¤Þ¤¹¡£
¤¹¤Ç¤Ë Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬¤¢¤ë¾ì¹ç¤Ë¤ÏºîÀ®¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£


¡¡¥Ò¥¨¥é¥ë¥­¡¼¤ËCanvas ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ò»ý¤Ä¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤­¡¢
UI => Canvas ¤òÁªÂò¤·¤ÆCanvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤È EventSystem ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÄɲ䷤Ƥ¯¤À¤µ¤¤¡£

¡¡°Ê²¼¤Î²èÁü¤Î¤è¤¦¤Ê¥Ò¥¨¥é¥ë¥­¡¼¤Î¹½À®¤Ë¤Ê¤ë¤è¤¦¤Ë½çÈ֤˺îÀ®¤ò¤·¤Æ¤¤¤­¤Þ¤¹¡£


Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥ÈÆâ¤Î¥Ò¥¨¥é¥ë¥­¡¼²èÁü



£´¡¥Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤Æ¡¢ComboDetailTran ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤¹¤ë


¡¡Canvas ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¾å¤Ç±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤­¡¢Create Empty ¤òÁªÂò¤·¤Þ¤¹¡£
¶õ¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬ºîÀ®¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢Ì¾Á°¤ò ComboDetailTran ¤ËÊѹ¹¤·¤Þ¤¹¡£


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



¡¡ComboDetailTran ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ï¡¢ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÀ¸À®¤¹¤ë°ÌÃ֤Ȥ·¤Æ¤ÎÌò³ä¤ò»ý¤Á¤Þ¤¹¡£


¡¡RectTransfrom ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î Anchor ¤òÁªÂò¤·¡¢Alt ¥­¡¼¤ò²¡¤·¤Ê¤¬¤é Top - Right ¤ËÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£
Canvas Æâ¤Î±¦¾å¤Ë ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬°ÜÆ°¤·¡¢¥¢¥ó¥«¡¼¤Î°ÌÃÖ¤¬¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡£
°Ê²¼¤Î²èÁü¤ò»²¹Í¤Ë¤·¤ÆÄ´À°¤ò¤·¤Æ¤¯¤À¤µ¤¤¡£


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



ComboDetailTran ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡Scene¥Ó¥å¡¼²èÁü¡Ê¥¢¥ó¥«¡¼¤Î°ÌÃÖ¤ò³Îǧ¤¹¤ë¡Ë



£µ¡¥ComboDetailTran ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤Æ¡¢ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤¹¤ë


¡¡ComboDetailTran ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤Æ±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤­¡¢UI => Image ¤òÁªÂò¤·¤Þ¤¹¡£
ComboDetailTran ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤Æ Image ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬ºîÀ®¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢Ì¾Á°¤ò ComboDetail ¤ËÊѹ¹¤·¤Þ¤¹¡£


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



¡¡ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ï¿á¤­½Ð¤·¤Î¥¤¥á¡¼¥¸¤òÀßÄꤷ¡¢¥Ò¥Ã¥È¿ô¤òɽ¼¨¤¹¤ë¤¿¤á¤ÎÌò³ä¤ò»ý¤Ä¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤¹¡£
¤³¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ç¥¤¥á¡¼¥¸¤ò¡¢¼¡¤Î¼ê½ç¤ÇºîÀ®¤¹¤ë¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ç¥Ò¥Ã¥È¿ôɽ¼¨¤ò¹Ô¤¤¤Þ¤¹¡£¤Þ¤¿´°À®¸å¤Ë¥×¥ì¥Õ¥¡¥Ö¤Ë¤·¤Þ¤¹¡£


¡¡Image ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î Sourece Image ¤Ë¥¤¥ó¥Ý¡¼¥È¤·¤¿¿á¤­½Ð¤·ÍѤβèÁü¤òÀßÄꤷ¤Þ¤¹¡£
¿§¤ò¼«Í³¤ËÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£¤Þ¤¿Æ©ÌÀÅÙ¤Ï160¡Á180Á°¸å¤ËÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£½ÅÊ£¤·¤ÆÀ¸À®¤µ¤ì¤¿¾ì¹ç¤Ë¡¢²¼¤Ë¤¢¤ë²èÁü¤òÆ©²á¤µ¤»¤ë¤³¤È¤¬ÌÜŪ¤Ç¤¹¡£
ÀßÄê¸å¤Ï Raycast Target ¤Î¥Á¥§¥Ã¥¯¤ò³°¤·¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£


¡¡²èÁü¤òÀßÄꤷ¤¿¤é¡¢RectTransfrom ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î Width ¤ÈHeight ¤òÄ´À°¤·¤Æ¥µ¥¤¥º¤òÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤¡£
¤Þ¤¿¡¢°ÌÃÖ¤ò±¦¾å¤«¤é¾¯¤·¥²¡¼¥à¤Î²èÌ̤ÎÆ⦤˰ÜÆ°¤µ¤»¤Æ¡¢¥²¡¼¥à²èÌÌÆâ¤Îɽ¼¨¤µ¤»¤¿¤¤°ÌÃÖ¤ËÄ´À°¤ò¤·¤Æ¤¯¤À¤µ¤¤¡£
²èÁü¤Î¤è¤¦¤Ë¡¢Scene¥Ó¥å¡¼¤ÈGame¥Ó¥å¡¼¤ò°ì½ï¤Ëɽ¼¨¤·¤Æ¤ª¤¯¤ÈÄ´À°¤¬³Ú¤Ç¤¹¡£


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



ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡Scene¥Ó¥å¡¼¤ÈGame¥Ó¥å¡¼²èÁü



£¶¡¥ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤Æ¡¢txtHitCount ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤¹¤ë


¡¡ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤Æ±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Æ¥á¥Ë¥å¡¼¤ò³«¤­¡¢UI => Text ¤òÁªÂò¤·¤Þ¤¹¡£
ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î»Ò¥ª¥Ö¥¸¥§¥¯¥È¤È¤·¤Æ Text ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤¬ºîÀ®¤µ¤ì¤Þ¤¹¤Î¤Ç¡¢Ì¾Á°¤ò txtHitCount ¤ËÊѹ¹¤·¤Þ¤¹¡£


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



¡¡txtHitCount ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ï¥Ò¥Ã¥È¿ô¤òɽ¼¨¤¹¤ëÌò³ä¤ò»ý¤Á¤Þ¤¹¡£


¡¡Text ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î Text ¥×¥í¥Ñ¥Æ¥£¤Ë "1 Hit!" ¤Èʸ»ú¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤ò´ð½à¤Ë¥µ¥¤¥º¤ä¥Õ¥©¥ó¥È¤ÎÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£
º£²ó¤Ï¥Õ¥©¥ó¥È¤òÊѹ¹¤·¡¢¥Õ¥©¥ó¥È¥¹¥¿¥¤¥ë¤ò Bold & Italic ¤Ë¡¢Alignment ¤Îʸ»ú¤Î°ÌÃÖ¤ÏÃæ±û¡¦Ãæ±û¤ÇÀßÄꤷ¤Æ¤¤¤Þ¤¹¡£
¤Þ¤¿Ê¸»úÁõ¾þÍÑ¤Ë CircleOutline ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤òÄɲ䷤ơ¢¥¢¥¦¥È¥é¥¤¥ó¤ò¤Ä¤±¤Æ¤¤¤Þ¤¹¤¬¡¢¤³¤ÎÊÕ¤ê¤Ï¼«Í³¤ËÀßÄê¤ò¹Ô¤Ã¤Æ¤¯¤À¤µ¤¤¡£

¡¡ÀßÄê¸å¤Ï Raycast Target ¤Î¥¹¥¤¥Ã¥Á¤«¤é¥Á¥§¥Ã¥¯¤ò³°¤·¤Æ¤¯¤À¤µ¤¤¡£


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



¡¡ºÇ¸å¤Ë°ÌÃÖ¤òÄ´À°¤·¤Þ¤¹¡£RectTransfrom ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ÎPosition¤ä¡¢Scene¥Ó¥å¡¼¤Ë¤Æ¥µ¥¤¥º¤È°ÌÃÖ¤òÄ´À°¤·¡¢¿á¤­½Ð¤·¤ÎÃæ¤Ë¼ý¤Þ¤ë¤è¤¦¤ËÀßÃÖ¤·¤Þ¤¹¡£
Ä´À°¤¬½ªÎ»¤·¤¿¤é¡¢Text ¥×¥í¥Ñ¥Æ¥£¤Îʸ»úÎó¤Ïºï½ü¤·¤Æ²¿¤âÆþÎϤµ¤ì¤Æ¤¤¤Ê¤¤¾õÂ֤ˤ·¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£
¤³¤³¤Ë¤Ï¥¹¥¯¥ê¥×¥È¤òÍøÍѤ·¤Æ¥Ò¥Ã¥È¿ô¤òɽ¼¨¤µ¤»¤Þ¤¹¡£


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



txtHitCount ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡Scene¥Ó¥å¡¼¤ÈGame¥Ó¥å¡¼²èÁü



¡¡°Ê¾å¤Ç¥³¥ó¥Ü¿ôɽ¼¨ÍѤΥ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎºîÀ®¤Ï´°Î»¤Ç¤¹¡£


£·¡¥¡ãCircleOutline¡ä


¡¡Github ¤Ç¸ø³«¤µ¤ì¤Æ¤¤¤ëʸ»úÁõ¾þÍѤΥ¹¥¯¥ê¥×¥È¤Ç¤¹¡£
ʸ»ú¤Î³°ÏȤËÂФ·¤ÆºîÍѤ·¡¢Ä̾ï¤Î Outline ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤è¤ê¤â¤¯¤Ã¤­¤ê¤È¤·¤¿ÎسԤòºî¤Ã¤ÆÁõ¾þ¤¹¤ë¤³¤È¤¬½ÐÍè¤Þ¤¹¡£

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


£¸¡¥ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥×¥ì¥Õ¥¡¥Ö¤Ë¤¹¤ë


¡¡ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥×¥ì¥Õ¥¡¥Ö¤Ë¤·¤Þ¤¹¡£¥Ò¥¨¥é¥ë¥­¡¼¤Ë¤¢¤ë ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ïºï½ü¤·¤Æ¤¯¤À¤µ¤¤¡£
³¤¤¤Æ ComboDetail ¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¤Æ¡¢¥×¥ì¥Õ¥¡¥Ö¤Ë¤·¤¿ ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤·¤Þ¤¹¡£


£²¡¥ComboDetail ¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¤Æ¡¢ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤·¤ÆÀßÄꤹ¤ë

£±¡¥Àß·×


¡¡Àè¤Û¤É¥×¥ì¥Õ¥¡¥Ö¤Ë¤·¤¿ ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ÎÀ©¸æ¤ò¹Ô¤¦¤¿¤á¤Î¥¹¥¯¥ê¥×¥È¤òºîÀ®¤·¤Þ¤¹¡£

¡¡DOTween¥¢¥»¥Ã¥È¤òÍøÍѤ·¤Æɽ¼¨¤¹¤ëºÝ¤È¾Ã¤¨¤ëºÝ¤Ë±é½Ð¤ò¹Ô¤¤¤Þ¤¹¡£É½¼¨¤µ¤ì¤ëºÝ¤Ë¥µ¥¤¥º¤ò°ì½Ö¤À¤±Â礭¤¯¤·¡¢¤½¤Î¸å¡¢½ù¡¹¤Ë¾Ã¤¨¤Æ¤¤¤¯¤è¤¦¤Ë¤·¤Þ¤¹¡£
¥³¥ó¥Ü¿ô¤ËÈæÎ㤷¤Æ¡¢¿ô¤¬Â¿¤¯¤Ê¤ë¤Û¤Éɽ¼¨¤¹¤ëºÝ¤Î¥µ¥¤¥º¤âÂ礭¤¯¤Ê¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£¤Þ¤¿É½¼¨¤µ¤ì¤ë°ÌÃÖ¤âËè²ó¥é¥ó¥À¥à¤ËÄ´À°¤·¤ÆÊѹ¹¤·¤Þ¤¹¡£


£²¡¥ComboDetail ¥¹¥¯¥ê¥×¥È¤òºîÀ®¤¹¤ë


¡¡DOTween¥¢¥»¥Ã¥È¤òÍøÍѤ·¤Æɽ¼¨¤¹¤ëºÝ¤È¾Ã¤¨¤ëºÝ¤Ë±é½Ð¤ò¹Ô¤¤¤Þ¤¹¤Î¤Ç¡¢¤½¤Î¤¿¤á¤ËɬÍפʥ³¥ó¥Ý¡¼¥Í¥ó¥È¤Î¥¢¥µ¥¤¥ó¾ðÊó¤ò¼èÆÀ¤¹¤ë¤¿¤á¤ÎÊÑ¿ô¤ò£³¤ÄÍÑ°Õ¤·¤Þ¤¹¡£
¤Þ¤¿ RequireComponent °À­¤òÍøÍѤ·¤Æ¡¢¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ËɬÍפʥ³¥ó¥Ý¡¼¥Í¥ó¥È¤ò¼«Æ°Åª¤Ë¥¢¥¿¥Ã¥Á¤·¡¢¥¢¥¿¥Ã¥Áϳ¤ì¤¬¤¢¤ë¾ì¹ç¤Ë¤Ï·Ù¹ð¤¬É½¼¨¤µ¤ì¤ë¤è¤¦¤ËÀ©¸æ¤ò¹Ô¤¤¤Þ¤¹¡£


ComboDetail.cs



£³¡¥¥×¥ì¥Õ¥¡¥Ö¤Ë¤·¤¿ ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë ComboDetail ¥¹¥¯¥ê¥×¥È¤ò¥¢¥¿¥Ã¥Á¤¹¤ë


¡¡¥×¥ì¥Õ¥¡¥Ö¤Ë¤·¤¿ ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¤Æ¡¢¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤«¤é Open Prefab ¤ò¥¯¥ê¥Ã¥¯¤·¤Æ¡¢¥×¥ì¥Õ¥¡¥Ö¤ÎÊÔ½¸¥â¡¼¥É¤Ë¤·¤Þ¤¹¡£

¡¡ºîÀ®¤·¤¿ ComboDetail ¥¹¥¯¥ê¥×¥È¤ò¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥¿¥Ã¥Á¤·¤Æ¤¯¤À¤µ¤¤¡£¥¹¥¯¥ê¥×¥È¤Ë RequireComponent °À­¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç
¥¢¥¿¥Ã¥Á¤ÈƱ»þ¤Ë RequireComponent °À­¤Î°ú¿ô¤Ç»ØÄꤷ¤Æ¤¤¤ë CanvasGroup ¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬¼«Æ°Åª¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Þ¤¹¡£


¡ã¼ê½çÆ°²è¡¡RequireComponent°À­¤òÍøÍѤ·¤¿¼«Æ°¥¢¥¿¥Ã¥Á¡ä
https://gyazo.com/f1fff6ed1a1791920c208f5cecf38741


£´¡¥¡ãRequireComponent(typeof(¥¯¥é¥¹Ì¾/¥³¥ó¥Ý¡¼¥Í¥ó¥È̾))]°À­¡ä

¡¡¡¡
¡¡¤³¤Î[RequireComponent(typeof(¥¯¥é¥¹Ì¾/¥³¥ó¥Ý¡¼¥Í¥ó¥È̾))]°À­¤Ï¡¢(°ú¿ô)¤Ç»ØÄꤷ¤¿¥¯¥é¥¹¤ä¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Æ¤¤¤Ê¤¤¤È¥¨¥é¡¼¤¬½Ð¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£¡¡
¤Þ¤¿¤³¤Î°À­¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¥¹¥¯¥ê¥×¥È¤ò¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤¹¤ë¤È¡¢°ú¿ô¤Ç»ØÄꤷ¤Æ¤¤¤ë¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬¼«Æ°Åª¤Ë¥¢¥¿¥Ã¥Á¤µ¤ì¤Þ¤¹¡£(º£²ó¤ÏCanvasGrourp)
¡¡
¡¡º£²ó¤ÏCanvasGroup¥³¥ó¥Ý¡¼¥Í¥ó¥È¤¬É¬Íפˤʤê¤Þ¤¹¤Î¤Ç¡¢[RequireComponent(typeof(CanvasGroup))]°À­¤òÄɲ䷤ơ¢¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Î¥¢¥¿¥Ã¥Á¤òɬ¿Ü¾ò·ï¤Ë¤·¤Æ¤¤¤Þ¤¹¡£


»²¹Í¥µ¥¤¥È
Unity¸ø¼°¥¹¥¯¥ê¥×¥È¥ê¥Õ¥¡¥ì¥ó¥¹
RequireComponent
https://docs.unity3d.com/ja/current/ScriptReferenc...
Qiita JunShimuraÍÍ
[Unity½é¿´¼ÔTips]³Î¼Â¤Ë¡ªÉ¬ÍפÊComponent¤òÆþ¤ì¤ëRequire Component¤ÈReset()
https://qiita.com/JunShimura/items/6576eb63c19c2c9...


£µ¡¥ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ë¥¢¥¿¥Ã¥Á¤·¤¿ ComboDetail ¥¹¥¯¥ê¥×¥È¤ÎÀßÄê¤ò¹Ô¤¦


¡¡ComboDetail ¥¹¥¯¥ê¥×¥È¤ÎÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£


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



ÊÔ½¸¥â¡¼¥É»þ¤Î¥Ò¥¨¥é¥ë¥­¡¼²èÁü



¡¡ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤ò³Îǧ¤·¡¢ComboDetail ¥¹¥¯¥ê¥×¥È¤Ëɽ¼¨¤µ¤ì¤Æ¤¤¤ë£³¤Ä¤ÎÊÑ¿ô¤Ë¥¢¥µ¥¤¥ó¤ò¹Ô¤¤¤Þ¤¹¡£
¤¹¤Ù¤Æ ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¢¤¢¤ë¤¤¤Ï»Ò¥ª¥Ö¥¸¥§¥¯¥È¤Î¾ðÊó¤Ë¤Ê¤ê¤Þ¤¹¤Î¤Ç¡¢½çÈ֤˥ɥé¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥µ¥¤¥ó¤·¤Þ¤¹¡£
¤É¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥¢¥µ¥¤¥ó¤¹¤ë¤«¤Ï¡¢ComboDetail ¥¹¥¯¥ê¥×¥È¤È°Ê²¼¤Î¼ê½çÆ°²è¤ò»²¹Í¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£


¡ã¼ê½çÆ°²è¡¡¥¢¥µ¥¤¥ó¡ä
https://gyazo.com/ac7ea1e9cd0fb091a9d6c226147e929c


ComboDetail ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡¥¢¥µ¥¤¥ó¸å¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü



¡¡°Ê¾å¤Ç¤³¤Î¼ê½ç¤Ï½ªÎ»¤Ç¤¹¡£¼¡¤Î¼ê½ç¤Ç¤Ï¡¢¤³¤Î¥³¥ó¥Üɽ¼¨ÍѤΥ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÀ¸À®¤¹¤ë½èÍý¤ò¼ÂÁõ¤·¤Þ¤¹¡£

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


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

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

Menu


´ðÁÃ

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

private



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

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