ºÇ½ª¹¹¿·¡§ orika_ex_miyako 2020ǯ10·î14Æü(¿å) 19:20:00ÍúÎò
¼ê½ç£µ¡¡¡Ý¥Ñ¡¼¥Æ¥£¥¯¥ë¤òºîÀ®¡Ý
¡¡£¹¡¥¥¥å¡¼¥é¥¤¥óÍÑ¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È CueLine ¤òºîÀ®¤¹¤ë £±£°¡¥CueLine¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤ò¥×¥ì¥Õ¥¡¥Ö¤Ë¤·¡¢Tag ¤È Layer ¤òÀßÄꤹ¤ë
¡¡¿·¤·¤¤³Ø½¬ÆâÍƤϡ¢°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
¡¦ParticleSystem¤ÎTextureSheetAnimationµ¡Ç½¤ò»È¤Ã¤Æ¡¢¥Æ¥¯¥¹¥Á¥ã¤ò¥¢¥Ë¥á¡¼¥·¥ç¥óɽ¼¨¤¹¤ë
¡¡¼êµå¤òÃƤ¯¤¿¤á¤Î¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¡¢´°À®¸å¤Ë¥×¥ì¥Õ¥¡¥Ö¤Ë¤·¤Þ¤¹¡£
¡¡º£²ó¤Ï¥¹¥ï¥¤¥×¤·¤¿¾ì½ê¤Ë¡¢ParticleSystem¤ò»È¤Ã¤¿±é½Ð¤ò»ý¤Ä¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÊ£¿ôÀ¸À®¤·¡¢¤½¤ì¤ÈÀÜ¿¨¤¹¤ë¤³¤È¤Ç¼êµå¤òÃƤ¯¤è¤¦¤Ë¤·¤Þ¤¹¡£
¡¡ParticleSystem¤Ç¤Ï£³£Ä°Ê³°¤Ë¤â£²£Ä¤Î¥Æ¥¯¥¹¥Á¥ã¤ò¥¢¥Ë¥á¡¼¥·¥ç¥ó¤µ¤»¤Æ±é½Ð¤òºî¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¤Î¤Ç¡¢
¤½¤Î¼êË¡¤Ç¥¥å¡¼¥é¥¤¥óÍѤΥ²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òºîÀ®¤·¤Þ¤¹¡£
¡¡¤Þ¤¿ÀÜ¿¨¤Ç¤¤ë¤è¤¦¤ËParticleSystem¤Ë¥³¥é¥¤¥À¡¼¤òÀßÄꤷ¤Þ¤¹¡£
´°À®Æ°²è
https://gyazo.com/47c2cc070ba6367b64c8667d50c597fd
¡¡¤³¤ì¤òÊ£¿ô¤Ä¤Ê¤²¤ÆÀ¸À®¤¹¤ë¤³¤È¤Ç¡¢¼¡¤Î¼ê½ç¤Ç£±¤Ä¤Î¥é¥¤¥ó¤Î¤è¤¦¤Ë¸«¤»¤ë±é½Ð¤Ç¡¢¼êµå¤òÃƤ¯¤è¤¦¤Ë¤·¤Æ¤¤¤Þ¤¹¡£
¡¡
Æ°²è¡¡Ê£¿ôÀ¸À®¤·¤¿¾ì¹ç¡Ê¼¡¤Î¼ê½ç¤Ç¼ÂÁõ¡Ë
https://gyazo.com/4b6e32e23f8c0ac3990601f3b79664db
¡¡¤½¤ì¤Ç¤Ï½çÈ֤˼ÂÁõ¤·¤Æ¤¤¤¤Þ¤¹¡£
¡¡
¡¡ºÇ½é¤ËParticleSystem¤ËŬÍѤ¹¤ë²èÁü¤òÆþ¼ê¤·¤Þ¤¹¡££²£Ä¤Î¥Æ¥¯¥¹¥Á¥ã²èÁü¤ò¼èÆÀ¤·¤Þ¤¹¡£
¡¡°Ê²¼¤Î¥µ¥¤¥ÈÍͤè¤ê¡¢@RiuRixu ÍͤÎÀ½ºî¤µ¤ì¤¿ÌµÎÁ¤Î¥Ñ¡¼¥Æ¥£¥¯¥ë²èÁü¤¬¥À¥¦¥ó¥í¡¼¥É¤Ç¤¤Þ¤¹¡£
¡¡¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¥Õ¥¡¥¤¥ë¤Ï¡¢¥Ñ¡¼¥Æ¥£¥¯¥ëÁǺà2alpha.zip ¤Ç¤¹¡£
̵ÎÁ¥Ñ¡¼¥Æ¥£¥¯¥ë
¥³¥¬¥Í¥Ö¥í¥°ÍÍ
¡ÚUnity¡ÛUnity ¤Ç»ÈÍѤǤ¤ë¡¢ÌµÎÁÇÛÉÛ¤µ¤ì¤Æ¤¤¤ë¥Ñ¡¼¥Æ¥£¥¯¥ëÁǺླྀ4¤Ä¾Ò²ð
https://baba-s.hatenablog.com/entry/2019/05/08/090...
¡¡
¡¡¥Õ¥©¥ë¥À¤ò¥À¥¦¥ó¥í¡¼¥É¤·¤Æ²òÅà¸å¡¢¥Õ¥©¥ë¥À¤´¤È¡¢¤¢¤ë¤¤¤Ï»È¤¤¤¿¤¤²èÁü¥Õ¥¡¥¤¥ë¤òÁªÂò¤·¤Æ¡¢Unity¤ÎProjectÆâ¤Ë¤¢¤ëSprites¥Õ¥©¥ë¥À¤Ë¥¤¥ó¥Ý¡¼¥È¤·¤Æ¤¯¤À¤µ¤¤¡£
º£²ó¤Ï1Ëç¤Î²èÁü¤ËÊ£¿ô¤Î²èÁü¤¬¤Þ¤È¤Þ¤Ã¤Æ¤¤¤ë¾õÂ֤Τޤ޻ÈÍѤ·¤Þ¤¹¡£
»²¹Í²èÁü
¡¡ProjectÆâ¤Ç±¦¥¯¥ê¥Ã¥¯¤·¤Æ¥á¥Ë¥å¡¼¤òɽ¼¨¤·¡¢Create => Folder ¤òÁªÂò¤·¡¢Ì¾Á°¤ò Materials ¤ËÊѹ¹¤·¤Þ¤¹¡£
¤³¤ÎMaterials¥Õ¥©¥ë¥ÀÆâ¤Ç¡¢¤â¤¦°ìÅÙ±¦¥¯¥ê¥Ã¥¯¤·¤Æ¥á¥Ë¥å¡¼¤òɽ¼¨¤·¡¢Create => Material ¤òÁªÂò¤·¤Þ¤¹¡£Ì¾Á°¤ò CueLineMaterial ¤ËÊѹ¹¤·¤Þ¤¹¡£
¡¡CueLineMaterial¤òÁªÂò¤·¤Æ¡¢¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤ò³Îǧ¤·¤Þ¤¹¡£
CueLineMaterial¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
¡¡½é¤á¤Ë ±¦Â¦¤Ë¤¢¤ë Particle Texture ¤È¤¤¤¦¾ì½ê¤¬ None ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤Î¤Ç¡¢¤³¤Á¤é¤ËÀè¤Û¤É¥¤¥ó¥Ý¡¼¥È¤·¤¿²èÁü¤òÀßÄꤷ¤Þ¤¹¡£
¤³¤Î²èÁü¤Ïº£²ó¤Î¤è¤¦¤Ë1Ëç¤Î²èÁü¤ËÊ£¿ô¤Î²èÁü¥Ç¡¼¥¿¤¬Ê¬³ä¤·¤Æ¤Þ¤È¤á¤é¤ì¤Æ¤¤¤ë¤â¤Î¡Ê¥¢¥È¥é¥¹²èÁü¤È¤¤¤¤¤Þ¤¹¡Ë¤òÀßÄꤷ¤Þ¤¹¡£
¡¡Select ¥Ü¥¿¥ó¤ò²¡¤¹¤«¡¢¤¢¤ë¤¤¤Ï²¼µ¤Î¤è¤¦¤Ë²èÁü¤ò¥É¥é¥Ã¥°¥¢¥ó¥É¥É¥í¥Ã¥×¤·¤Æ¥¢¥µ¥¤¥ó¤·¤Þ¤¹¡£
Particle Texture¡¡¥¢¥µ¥¤¥óÆ°²è
https://gyazo.com/7b7310b9c6a8d04edb23b212c06e684a
¥¢¥µ¥¤¥ó¸å¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
¡¡
¡¡Â³¤¤¤Æ¡¢¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤ÎºÇ¾åÃʤˤ¢¤ë Shader ¤òÊѹ¹¤·¤Þ¤¹¡£Shader ¤È¤Ï Material ¤Î»ý¤ÄÉÁ²è¤ÎÀßÄê¾ðÊó¤Ç¤¹¡£¤³¤Î¾ðÊó¤ò¸µ¤Ë Material ¤ÏÉÁ²è¤ò¹Ô¤¤¤Þ¤¹¡£
º£²ó¤Ï Mobile / Particle / Alpha Blended ¤ËÀßÄꤷ¤Þ¤¹¡£¤³¤ì¤Ï²èÁü¤ËȾƩÌÀ¤ÎÍ×ÁǤò²Ã¤¨¤Ê¤¬¤éÉÁ²è¤ò¤·¤Æ¤¯¤ì¤ëÀßÄê¤Î Shader ¤Ç¤¹¡£
ShaderÀßÄêÆ°²è
https://gyazo.com/a07f0e249710f0aed3ef64428feffca9¡¡
ShaderÀßÄê¸å¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
¡¡
¡¡¤³¤ÎÀßÄê¤Ë¤è¤Ã¤ÆÉÁ²èÊýË¡¤¬ÊѤï¤ê¤Þ¤¹¤Î¤Ç¡¢²èÁü¤Î¸«¤¨Êý¤¬ÊѤï¤ê¤Þ¤¹¡£Alpha Blended ¤ò Additive ¤Ë¤·¤Æ¤â¤¤¤¤¤È»×¤¤¤Þ¤¹¡£
¤Þ¤¿¤³¤ÎÊÕ¤ê¤Ï¥²¡¼¥àºÆÀ¸Ãæ¤Ç¤âÊѹ¹¤Ç¤¤Þ¤¹¤Î¤Ç¡¢¥ê¥¢¥ë¥¿¥¤¥à¤ËÉÁ²è¤ò³Îǧ¤·¤Ê¤¬¤é¡¢¹¥¤ß¤ÎShader¤òÁªÂò¤·¤Æ¤¯¤À¤µ¤¤¡£
Shader¤Ë¤è¤ëÈæ³Ó¡¡¡Mobile / Particle / Alpha Blended
https://gyazo.com/88216947c8e83f5b8c808ecefaa5ef84
Shader¤Ë¤è¤ëÈæ³Ó¢¡¡Mobile / Particle / Additive
https://gyazo.com/3867b68fc367446d540ea1d83f77342a
»²¹Í¥µ¥¤¥È
SamuraiBlogÍÍ
¡ÚUnityÆþÌç¡ÛShader¤Ã¤Æ¤Ê¤ó¤À?ï¤Ç¤â¤ï¤«¤ë¥·¥§¡¼¥À¡¼²òÀâ!
https://www.sejuku.net/blog/66319
ParticleSystem¥³¥ó¥Ý¡¼¥Í¥ó¥È¤Ë¤ÏÈó¾ï¤Ë¿¤¯¤ÎÀßÄê¹àÌܤ¬¤¢¤ê¤Þ¤¹¡£¤³¤ì¤é¤Î¹àÌܤò¥â¥¸¥å¡¼¥ë¤È¸À¤¤¤Þ¤¹¡£º£²ó¤Ï¥á¥¤¥ó¥â¥¸¥å¡¼¥ë¡¢Shape¡¢TexutureSheetAnimation¡¢Renderer¤Î³Æ¥â¥¸¥å¡¼¥ë¤ò½çÈÖ¤òÀßÄꤷ¤Æ¤¤¤¤Þ¤¹¡£
¡¡CueLine¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤òÁªÂò¤·¡¢¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤ò³Îǧ¤·¤Þ¤¹¡¢
ParticleSystem¤Î°ìÈÖ¾å¤Î¥á¥¤¥ó¥â¥¸¥å¡¼¥ë¤«¤éÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡²¼µ¤Î²èÁü¤Î¤è¤¦¤Ë¡¢Duration¡¢Looping¡¢StartSize¤Ê¤É¤Î¹àÌܤòÀßÄꤷ¤Æ¤¤¤¤Þ¤¹¡£
¡¡Duration¤Ï¥Ñ¡¼¥Æ¥£¥¯¥ë¤ÎÀ¸À®¤¹¤ë»þ´Ö¤Ç¤¹¡£¥Ñ¥Ã¤Èɽ¼¨¤µ¤ì¤Æ¾Ã¤¨¤ë¤è¤¦¤Ëû¤á¤Î»þ´Ö¤òÀßÄꤷ¤Æ¤¤¤Þ¤¹¡£
¡¡Looping¤ÏDuration¤Î»þ´Ö·Ð²á¸å¤Ë¡¢ºÆÅ٤⤦°ìÅÙ¡¢¥Ñ¡¼¥Æ¥£¥¯¥ë¤òºÆÀ¸¤¹¤ë¤«¤É¤¦¤«¤ÎÀßÄê¤Ç¤¹¡£º£²ó¤Ï¥ë¡¼¥×¤µ¤»¤Þ¤»¤ó¤Î¤Ç¡¢¥Á¥§¥Ã¥¯¤ò³°¤·¤Þ¤¹¡£
¡¡StartSize¤Ï¥Ñ¡¼¥Æ¥£¥¯¥ë¤¬À¸À®¤µ¤ì¤¿ºÝ¤ÎÂ礤µ¤Ç¤¹¡£¤³¤ì¤Ï»ÈÍѤ¹¤ë²èÁü¤Ë¤è¤Ã¤ÆÄ´À°¤¬É¬ÍפǤ¹¡£
¤Þ¤º¤Ï²èÁü¤Î¿ô»ú¤ËÀßÄꤷ¤Æ¤ª¤¤¤Æ¡¢¼ÂºÝ¤ËºÆÀ¸¤µ¤ì¤¿¥Ñ¡¼¥Æ¥£¥¯¥ë¤ò¸«¤Ê¤¬¤éŬµ¹Ä´À°¤·¤Æ¤¯¤À¤µ¤¤¡£
¡¡Scaling Mode ¤ò Shape ¤ËÀßÄꤷ¤Þ¤¹¡£¤³¤ÎÀßÄê¤Ç¤Ï Scale ¤ËÊѹ¹¤¬¤Ê¤¯¡¢ºÆÀ¸³«»Ï»þ¤Î°ÌÃÖ¾ðÊó¤Î¤ßÍøÍѤµ¤ì¤Þ¤¹¡£
¡¡Â¾¤Ë¤âÊѹ¹²Õ½ê¤¬¤¢¤ê¤Þ¤¹¤Î¤Ç¡¢²èÁü¤ò»²¹Í¤ËÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£
¥á¥¤¥ó¥â¥¸¥å¡¼¥ë¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
¡¡¤½¤Î¤Û¤«¤Î´ðËܥ⥸¥å¡¼¥ë¤Ë¤Ä¤¤¤Æ¤Ï¡¢¤³¤ì¤é¤Î¥µ¥¤¥È¤ò»²¹Í¤ËÄ´¤Ù¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
»²¹Í¥µ¥¤¥È
Unity¸ø¼°¥Þ¥Ë¥å¥¢¥ë
¥á¥¤¥ó¥â¥¸¥å¡¼¥ë
https://docs.unity3d.com/ja/2018.4/Manual/PartSysM...
XR-HubÍÍ
¡ÚUnity¡Û¥Ñ¡¼¥Æ¥£¥¯¥ëÅ°Äì²òÀ⡪´ðËÜŪ¤Ê¥â¥¸¥å¡¼¥ë¤Î»ÈÍÑÊýË¡¤«¤é±þÍÑÎã¤Þ¤Ç
https://xr-hub.com/archives/3522
¡¡Shape¥â¥¸¥å¡¼¥ë¤òÀßÄꤷ¤Þ¤¹¡£°ì¤Ä¾å¤ÎÀßÄê¤Ç¤¢¤ëEmission¥â¥¸¥å¡¼¥ë¤Ï¡¢º£²ó¤ÏÊѹ¹¤»¤º¤Ë¤½¤Î¤Þ¤Þ¤ÇÌäÂꤢ¤ê¤Þ¤»¤ó¡£
¡¡²¼µ¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü¤Î¤è¤¦¤ËÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£
¤³¤³¤Ç¤Ï Radius ¤òÊѹ¹¤·¡¢È¾·Â¤ò¾®¤µ¤¯ÀßÄꤷ¤Æ¤¤¤Þ¤¹¡£
Shape¥â¥¸¥å¡¼¥ë¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
¡¡Shape¥â¥¸¥å¡¼¥ë¤Ç¤Ï¡¢Shape¥×¥í¥Ñ¥Æ¥£¤ËÀßÄꤷ¤¿ÆâÍƤ˱þ¤¸¤Æ¡¢¤½¤ÎºÙÉô¤ÎÀßÄ꤬°Û¤Ê¤ê¤Þ¤¹¡£¾ÜºÙ¤Ï¸ø¼°¥Þ¥Ë¥å¥¢¥ë¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£
»²¹Í¥µ¥¤¥È
Unity¸ø¼°¥Þ¥Ë¥å¥¢¥ë
Shape¥â¥¸¥å¡¼¥ë
https://docs.unity3d.com/ja/2018.4/Manual/PartSysS...
¡¡¤³¤Î¥â¥¸¥å¡¼¥ë¤òÊѹ¹¤¹¤ë¤³¤È¤Ç²èÁü¤ò¥¢¥Ë¥á¡¼¥·¥ç¥ó¤µ¤»¤Æɽ¼¨¤·¤Þ¤¹¡£
ºÇ½é¤Ï¤³¤Î¥â¥¸¥å¡¼¥ë¤Ë¤Ï¥Á¥§¥Ã¥¯¤¬¤Ä¤¤¤Æ¤¤¤Þ¤»¤ó¤Î¤Ç¡¢Ì¾Á°¤Îº¸¤Ë¤¢¤ë¥Á¥§¥Ã¥¯¤ò¥¯¥ê¥Ã¥¯¤·¤Æ»ÈÍѵö²Ä¤·¤Þ¤¹¡£
¡¡¤½¤Î¸å¡¢TexutureSheetAnimationÉôʬ¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¾ÜºÙ¤ÊÀßÄ꤬³«¤¤Þ¤¹¡£
¡¡Mode ¤Ï Grid ¤Î¤Þ¤Þ¤Ç¡¢¼¡¤Î Tiles ¤ÎÃͤòÊѹ¹¤·¤Þ¤¹¡£º£²ó»ÈÍѤ¹¤ë²èÁü¤Ï 8 * 8 ¤ÎÂ礤µ¤Ç£±Ëç¤Î²èÁü¥Õ¥¡¥¤¥ë¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤Î¤Ç
¤³¤ÎÃͤò x = 8¡¢ y = 8 ¤ËÊѹ¹¤·¤Æ¡¢²èÁü¤Î¿ô¤È¹ç¤ï¤»¤Þ¤¹¡£
¡¡¤½¤Î²¼¤Ë¤¢¤ë Animation ¤ÎÀßÄ꤬ Whole Sheet ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤È»×¤¤¤Þ¤¹¡£¤³¤ì¤Ï¡¢²èÁü¤Î°ìÈÖº¸¾å¤«¤é±¦Êý¸þ¤Ë²èÁü¤ò¥¢¥Ë¥á¡¼¥·¥ç¥ó¤µ¤»¤Æ¤¤¤
¤½¤Î¹Ô¤¬½ªÎ»¤·¤¿¤é£±¹Ô²¼¤Î°ìÈÖº¸¤«¤é¤Þ¤¿±¦Êý¸þ¤Ë¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ò¤µ¤»¡¢¤º¤Ù¤Æ¤Î²èÁü¤ò£±¤Ä¤Ë¥¢¥Ë¥á¡¼¥·¥ç¥ó¤È¤·¤Æ·Ò¤²¤ÆºÆÀ¸¤¹¤ë½èÍý¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡Cycle ¤Î¿ô¤À¤±ºÆÀ¸¤ò·«¤êÊÖ¤·¤Þ¤¹¤Î¤Ç¡¢¤³¤ÎÃÍ¤Ï 1 ¤Î¤Þ¤Þ¤Ë¤·¤Æ¤ª¤¤Þ¤¹¡£
TexutureSheetAnimation¥â¥¸¥å¡¼¥ë¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
»²¹Í¥µ¥¤¥È
Unity¸ø¼°¥Þ¥Ë¥å¥¢¥ë
TexutureSheetAnimation¥â¥¸¥å¡¼¥ë
https://docs.unity3d.com/ja/2018.4/Manual/PartSysT...
¡¡ºÇ¸å¤ËRenderer¥â¥¸¥å¡¼¥ë¤ÎÀßÄê¤ò¹Ô¤¤¤Þ¤¹¡£
¡¡Material ¤Î¥×¥í¥Ñ¥Æ¥£¤ËÀè¤Û¤ÉºîÀ®¤·¤¿ CueLineMaterial ¤ò¥¢¥µ¥¤¥ó¤·¤Þ¤¹¡£¤³¤Á¤é¤ÎÀßÄê¤ÈTexutureSheetAnimation¥â¥¸¥å¡¼¥ë¤ÎÀßÄê¤ò¹Ô¤¦¤³¤È¤Ë¤è¤Ã¤Æ
1Ëç¤Î¥¢¥È¥é¥¹²èÁü¤ò¥Ñ¥é¥Ñ¥éÌ¡²è¤Î¤è¤¦¤Ë1Ëç¤Î¥¢¥Ë¥á¡¼¥·¥ç¥ó¤È¤·¤ÆºÆÀ¸¤¹¤ë¤³¤È¤¬²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£
¡¡¤Þ¤¿ Order in Layer ¤ÎÃͤò 1 ¤ËÊѹ¹¤·¤Þ¤¹¡£¤³¤ì¤Ï¥Ñ¡¼¥Æ¥£¥¯¥ë¤ÎÉÁ²è¤ÎÍ¥Àè½ç°Ì¤Ç¤¹¡£ 0 ¤Î¤Þ¤Þ¤Ç¤¹¤ÈCanvas¤ÈƱ¤¸Í¥Àè½ç°Ì¤Î¤¿¤á¡¢²èÌ̤Ëɽ¼¨¤µ¤ì¤Ê¤¯¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¡£
¤½¤Î¤¿¤á¡¢Canvas¤ÎÀßÄêÃͤè¤ê¤âÂ礤ÊÃͤˤ·¤Æ¡¢¥Ñ¡¼¥Æ¥£¥¯¥ë¤ò¥²¡¼¥à²èÌ̤Ëɽ¼¨½ÐÍè¤ë¤è¤¦¤ËÀßÄꤷ¤Þ¤¹¡£
Æ°²è¡¡RendererÍó¤ÎMaterial¤ËºîÀ®¤·¤¿ CueLineParticle¤ò¥¢¥µ¥¤¥ó¤¹¤ë
https://gyazo.com/d7c1261b2c0c9a1adeb2eaba8da98808
Renderer¥â¥¸¥å¡¼¥ë¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
¡¡º£²ó¤ÏMaterial¤ÈTexture¤òÍøÍѤ·¤Þ¤·¤¿¤¬¡¢1Ëç¤ÎTexture²èÁü¤òʬ³ä¤·¡¢Sprite¤È¤·¤ÆÍøÍѤ·¤ÆºÆÀ¸¤¹¤ëÊýË¡¤â¤¢¤ê¤Þ¤¹¡£
¤³¤Á¤é¤Î¥µ¥¤¥ÈÍͤ¬¾Ü¤·¤¤¤Î¤Ç³Îǧ¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
»²¹Í¥µ¥¤¥È
Unity¸ø¼°¥Þ¥Ë¥å¥¢¥ë
Renderer¥â¥¸¥å¡¼¥ë
https://docs.unity3d.com/ja/2018.4/Manual/PartSysR...
LIGHT11ÍÍ
¡ÚUnity¡ÛParticleSystem¤ÇÏ¢ÈÖ¥¢¥Ë¥á¡¼¥·¥ç¥ó¤ò¤¹¤ëÊýË¡
https://light11.hatenadiary.com/entry/2018/12/06/2...
¡¡¤³¤ì¤ÇParticleSystem¥³¥ó¥Ý¡¼¥Í¥ó¥È¤ÎÀßÄê¤Ï´°À®¤Ç¤¹¡£
ºÇ¸å¤ËCollider¤ò¥¢¥¿¥Ã¥Á¤·¤Æ¼êµå¤ÈÀÜ¿¨¤Ç¤¤ë¤è¤¦¤Ë¤·¤Þ¤¹¡£
¡¡CueLine¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤Î°ìÈÖ²¼¤Ë¤¢¤ë Add Component ¤òÁªÂò¤·¤Æ¡¢BoxCollider2D¤òÄɲä·¤Þ¤¹¡£
Collider¤ÎÂ礤µ¤òŬµ¹¤Ê¥µ¥¤¥º¤ËÄ´À°¤·¤Æ¤¯¤À¤µ¤¤¡£(ÀßÄꤷ¤¿²èÁü¤Ë¤è¤Ã¤Æ¤Ï¤½¤Î¤Þ¤Þ¤Ç¤âÌäÂê¤Ê¤¤¤È»×¤¤¤Þ¤¹)
CueLine¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¡¡BoxCollider2D¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
¡¡¤³¤ì¤ÇCueLine¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Ï´°À®¤Ç¤¹¡£
¡¡Tag ¤Ë¤Ï¿·¤·¤¯ CueLine ¤òºîÀ®¤·¤Æ¡¢ÀßÄꤷ¤Þ¤¹¡£Layer¤âƱ¤¸¤è¤¦¤Ë CueLine ¤ò¿·¤·¤¯ºîÀ®¤·¤ÆÀßÄꤷ¤Þ¤¹¡£
Æ°²è¡¡¿·¤·¤¯Layer¤òÄɲ乤ë¼ê½ç
https://gyazo.com/fcc1683aebe0b4f11e63430186627570
¡¡Layer¤Ê¤É¤òÊѹ¹¤¹¤ëºÝ¤Ë·Ù¹ð¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¤¿¾ì¹ç¤Ë¤Ï Yes,Change Children ¤ò²¡¤·¤Æ¤¯¤À¤µ¤¤¡£
¤³¤ì¤Ï¼«Ê¬¤À¤±¤Ç¤Ï¤Ê¤¯¡¢»Ò¥ª¥Ö¥¸¥§¥¯¥È¤â°ì½ï¤ËTag¤äLayer¤òÊѹ¹¤·¤Þ¤¹¡¢¤È¤¤¤¦³Îǧ¤Ç¤¹¡£
LayerÊѹ¹»þ¤Î·Ù¹ð¥á¥Ã¥»¡¼¥¸
Tag¤ÈLayerÀßÄê¸å¤ÎCueLine¥²¡¼¥à¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¤¥ó¥¹¥Ú¥¯¥¿¡¼²èÁü
¡¡¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤«¤é Open Prefab ¤ò¹Ô¤¦¤ÈScene¥Ó¥å¡¼¤¬¥×¥ì¥Õ¥¡¥Ö¤ÎÀßÄê²èÌ̤ËÀÚ¤êÂؤï¤ê¡¢ParticleEffect¥Ó¥å¡¼¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
Æ°²è¡¡Open Prefab¤Î¼ê½ç
https://gyazo.com/d2af5e70cf4c5a82c5cd0b6b99dab063
¡¡Play¥Ü¥¿¥ó¤ò²¡¤·¤Æ¡¢¥Ñ¡¼¥Æ¥£¥¯¥ë¤¬Àµ¾ï¤ËºÆÀ¸¤µ¤ì¤ë¤«³Îǧ¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£
Æ°²è¡¡ParticleEffect¥Ó¥å¡¼
https://gyazo.com/24d7d50df1787460e558cf70e49d8c02
¡¡°Ê¾å¤Ç¤³¤Î¼ê½ç¤Ï½ªÎ»¤Ç¤¹¡£
- ¥«¥Æ¥´¥ê¡§
- ¿Ê³Ø/¥¹¥¯¡¼¥ë
- ¥×¥í¥°¥é¥ß¥ó¥°
¥³¥á¥ó¥È¤ò¤«¤¯