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

¥Ð¡¼¥¸¥ç¥ó¥¢¥Ã¥×»þ¤Î·Ù¹ð


¡¡¤¹¤Ç¤Ë¤¢¤ë¥×¥í¥¸¥§¥¯¥È¤Î¥Ð¡¼¥¸¥ç¥ó¥¢¥Ã¥×¤ò¹Ô¤Ã¤¿¾ì¹ç¤Ë¡¢Visual Studio Code Editor ¤Î·Ù¹ð¤¬É½¼¨¤µ¤ì¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£







¡¡¤½¤Î¾ì¹ç¤Ë¤Ï¡¢Package Manager ¤«¤é³ºÅö¤¹¤ë¥Ñ¥Ã¥±¡¼¥¸¤ò¥¢¥ó¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤³¤È¤Ç·Ù¹ð¤¬²ò¾Ã¤µ¤ì¤Þ¤¹¡£








¥á¥Ë¥å¡¼¥³¥Þ¥ó¥É


¡¡Projects ¤Î ¡Ü ¥Ü¥¿¥ó¡¢¤ª¤è¤Ó±¦¥¯¥ê¥Ã¥¯¤Ç¼Â¹Ô¤Ç¤­¤ë¥á¥Ë¥å¡¼¥³¥Þ¥ó¥É¤¬ºþ¿·¤µ¤ì¤Æ¤¤¤Þ¤¹¡£







¡¡¿·µ¬¤Î¥¹¥¯¥ê¥×¥ÈºîÀ®ÊýË¡¤Ç¤¹¤¬¡¢¾åµ­¤Î¥á¥Ë¥å¡¼Æâ¤è¤ê C# Script ¤È¤¤¤¦¥³¥Þ¥ó¥É¤¬¤Ê¤¯¤Ê¤ê¤Þ¤·¤¿¤Î¤Ç¡¢
¥³¥Þ¥ó¥É¾åÉô¤Ë¤¢¤ë MonoBehaviourScript ¤òÁªÂò¤¹¤ë¤«¡¢
¤¢¤ë¤¤¤Ï¡¢Scripting ¤òÁªÂò¸å¡¢Ê£¿ô¤¢¤ë¥Æ¥ó¥×¥ì¡¼¥È¤«¤éÁªÂò¤¹¤ë·Á¤ËÊѹ¹¤Ë¤Ê¤ê¤Þ¤·¤¿¡£

¡¡½¾ÍèÄ̤ê¤Î C# Script ¤Ç¤¢¤ì¤Ð¡¢MonoBehaviourScript ¤ÇºîÀ®¤·¤Æ¤¯¤À¤µ¤¤¡£






¡¡Empty C# Script ¤òÁªÂò¤¹¤ì¤Ð¡¢MonoBehaviour ¤ò·Ñ¾µ¤·¤Æ¤ª¤é¤º¡¢Start ¥á¥½¥Ã¥É¤Ê¤É¤â¤Ê¤¤¥Ô¥å¥¢¤Ê C# ¥¹¥¯¥ê¥×¥È¤ò¿·µ¬ºîÀ®¤Ç¤­¤Þ¤¹¡£










¡¡RenderTexture¡¢Physics Material2D ¤Ê¤É¡¢Ã±ÆȤǥ³¥Þ¥ó¥É¤¬Â¸ºß¤·¤Æ¤¤¤¿¤â¤Î¤Ë¤Ä¤¤¤Æ¤Ï¡¢ÂçÊ̤µ¤ì¤Æ¡¢¤½¤ÎÃæ¤Ë´Þ¤Þ¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
3D ÍѤΠPhysics Material ¤ÏñÆȤΤޤ޻ĤäƤ¤¤Þ¤¹¡£


Rendering ¢ª Material¡¢RenderTexture ¤Ê¤É



Animation ¢ª Animator Override Controller ¤Ê¤É



2D ¢ª Physics Material2D ¤Ê¤É



PackageManager


¡¡PackageManager ¤â¥¦¥¤¥ó¥É¥¦Æâ¤Î¹½À®¤¬Êѹ¹¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
²èÌ̺¸Â¦¤Ë Package ¤Î¾ì½ê¡¢²èÌ̤α¦Â¦¤ËÁªÂò¤·¤¿ Package ¤Ë´Þ¤Þ¤ì¤ë¹àÌܤΰìÍ÷¤È¡¢¤½¤Î¾ÜºÙ¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£

¡¡InputSystem ¤Î¥ì¥¤¥¢¥¦¥È¤Ë»÷¤Æ¤¤¤Þ¤¹¡£





Build


¡¡Build Settings ¥³¥Þ¥ó¥É¤¬¤Ê¤¯¤Ê¤ê¡¢Âå¤ï¤ê¤Ë Build Profiles ¤ËÊѹ¹¤Ë¤Ê¤ê¤Þ¤·¤¿¡£






¡¡¤³¤Á¤é¤Î¥ì¥¤¥¢¥¦¥È¤â PackageManager ¤Î¤è¤¦¤Ê¹½À®¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£

¡¡SceneList ¤Ë¤Ï Build ÂоݤΠScene ¤¬ÅÐÏ¿¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
¤³¤Á¤é¤Ï³Æ¥×¥é¥Ã¥È¥Õ¥©¡¼¥à¤´¤È¤Ë¤âÀßÄê²Äǽ¤Ç¤¹¡£




¡¡Active ɽ¼¨¤Î¥×¥é¥Ã¥È¥Õ¥©¡¼¥à¤¬ÁªÂòÃæ¤Î¥×¥é¥Ã¥È¥Õ¥©¡¼¥à¤Ë¤Ê¤ê¤Þ¤¹(°ÊÁ°¤Î Unity ¥¢¥¤¥³¥ó¤Ï¤Ê¤¯¤Ê¤ê¤Þ¤·¤¿¡£)
PlayerSettings ¤Ï¥¦¥¤¥ó¥É¥¦Æâ¤Î±¦¾å¤Ë¤¢¤ê¤Þ¤¹¡£





¥¯¥é¥¹

Rigidbody/Rigidbody2D


¡¡Rigidbody/Rigidbody2D ¤ÎÁÐÊý¤Ë¤ª¤¤¤Æ velocity ¥×¥í¥Ñ¥Æ¥£¤¬ÇѻߤȤʤꡢƱ¤¸µ¡Ç½¤È¤·¤Æ linearVelocity ¥×¥í¥Ñ¥Æ¥£¤¬Äɲ䵤ì¤Þ¤·¤¿¡£
maxLinearVelocity ¥×¥í¥Ñ¥Æ¥£¤Ï¤½¤Î¤Þ¤ÞÍøÍѤǤ­¤Þ¤¹¡£

¡¡½¾Íè¤è¤ê velocity(ľÀþ®ÅÙ) ¤È angularVelocity(²óž®ÅÙ)¤Ëʬ¤«¤ì¤Æ¤¤¤Þ¤·¤¿¤¬¡¢¤½¤ì¤ò̾¾ÎŪ¤Ë¤ï¤«¤ê¤ä¤¹¤¯¤¹¤ë¤¿¤á¤ÎÊѹ¹¤Î¤è¤¦¤Ç¤¹¡£


Unity 2022.3
https://docs.unity3d.com/2022.3/Documentation/Scri...


Unity 6000.0
https://docs.unity3d.com/6000.0/Documentation/Scri...


¡¡Æ±ÍÍ¤Ë angularDrag ¥×¥í¥Ñ¥Æ¥£¤¬Çѻߤµ¤ì¤Æ¡¢angularDamping ¥×¥í¥Ñ¥Æ¥£¤Ë̾¾Î¤¬Êѹ¹¤È¤Ê¤ê¡¢
drag ¥×¥í¥Ñ¥Æ¥£¤¬Çѻߤµ¤ì¤Æ¡¢LinearDamping ¥×¥í¥Ñ¥Æ¥£¤Ë̾¾Î¤¬Êѹ¹¤Ë¤Ê¤ê¤Þ¤·¤¿¡£



¡¡¤³¤ì¤é¤Î̾¾ÎÊѹ¹¤Ëȼ¤¤¡¢API ¤ÎÊѹ¹¤¬È¯À¸¤·¤Æ¤¤¤Þ¤¹¡£
¤½¤Î¤¿¤á¡¢6000 °ÊÁ°¤Î API ¤Çµ­ºÜ¤µ¤ì¤Æ¤¤¤ë¥½¡¼¥¹¥³¡¼¥É¤Î´Þ¤Þ¤ì¤Æ¤¤¤ë¥¢¥»¥Ã¥È¤ò¥¤¥ó¥Ý¡¼¥È¤·¤¿¤ê¡¢
¼«ºî¥¯¥é¥¹Æâ¤Ë¤³¤ì¤é¤Î API ¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¤È¡¢¥¨¥Ç¥£¥¿¡¼µ¯Æ°»þ¤Ë API Êѹ¹¤Î¥Ý¥Ã¥×¥¢¥Ã¥×¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£

¡¡API Êѹ¹¤ò¼Â»Ü¤¹¤ë¤³¤È¤Ç¡¢ velocity ¥×¥í¥Ñ¥Æ¥£¤Ï¼«Æ°Åª¤Ë linearVelocity ¥×¥í¥Ñ¥Æ¥£¤Ë¡¢¤½¤ì°Ê³°¤Î¤â¤Î¤âÂбþ¤¹¤ë¥×¥í¥Ñ¥Æ¥£Ì¾¤ËÃÖ¤­´¹¤ï¤ê¤Þ¤¹¡£

¡¡¤³¤Á¤é¤Î API Êѹ¹¤ËÂбþ¤·¤Ê¤¤¤È¥¨¥é¡¼¤Ë¤Ê¤ê¤Þ¤¹¤¬¡¢½¾Íè¤Î¥×¥í¥Ñ¥Æ¥£Ì¾¤Çµ¡Ç½¤ò·Ñ³¤·¤¿¤¤¾ì¹ç¤Ë¤Ï [System.Obsolute] °À­¤òÉÕÍ¿¤·¤Æ¤¯¤À¤µ¤¤¡£



¡¡Rigidbody2D ¤Î¤ß¤ÎÊѹ¹¤È¤·¤Æ¡¢inKinematic ¥×¥í¥Ñ¥Æ¥£¤¬ÇѻߤȤʤê¤Þ¤·¤¿¡£
¸µ¡¹¥¤¥ó¥¹¥Ú¥¯¥¿¡¼¤Ë¤Ïɽ¼¨¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¤Ç¤·¤¿¤¬¡¢¥×¥í¥Ñ¥Æ¥£¼«ÂΤ¬¤Ê¤¯¤Ê¤ê¤Þ¤·¤¿¡£

¡¡¤Þ¤¿ linearVelocityX ¥×¥í¥Ñ¥Æ¥£¤È linearVelocityY ¥×¥í¥Ñ¥Æ¥£¤¬Äɲ䵤ì¤Þ¤·¤¿¡£
¤³¤Á¤é¤òÍøÍѤ¹¤ë¤³¤È¤Ç¤¤¤º¤ì¤«¤ÎÀ®Ê¬¤Î¤ß»²¾È¤ÈÊѹ¹¤¬²Äǽ¤Ç¤¹¡£



Rigidbody2D.linearVelocityX
https://docs.unity3d.com/6000.0/Documentation/Scri...


Rigidbody2D.linearVelocityY
https://docs.unity3d.com/6000.0/Documentation/Scri...


Rigidbody2D.linearDamping
https://docs.unity3d.com/ScriptReference/Rigidbody...



Unity 2022.3
https://docs.unity3d.com/ja/2022.3/ScriptReference...


Unity 6000.1
https://docs.unity3d.com/6000.0/Documentation/Scri...



¥Ç¥Õ¥©¥ë¥È Shader ¤Î¥¤¥ó¥Ý¡¼¥ÈÊýË¡


¡¡Âбþ¤¹¤ë Unity ¤Î¥ê¥ê¡¼¥¹¡¢¤¢¤ë¤¤¤Ï¥¢¡¼¥«¥¤¥Ö¥µ¥¤¥È¤Ø°ÜÆ°¤·¡¢
Other installs ¤Î±¦Â¦¤Ë¤¢¤ë ¡Ü ¥Ü¥¿¥ó¤ò²¡¤·¤ÆÆâÍƤòɽ¼¨¤·¤Þ¤¹¡£

¡¡¤½¤ÎÃæ¤Ë¤¢¤ë Shaders ¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤³¤È¤Ç¡¢Unity ¤¬¥Ç¥Õ¥©¥ë¥È¤ÇÍÑ°Õ¤·¤Æ¤¤¤ë Shader ¥×¥í¥°¥é¥à¤ò³Îǧ¤Ç¤­¤Þ¤¹¡£


https://unity.com/ja/releases/editor/whats-new/600...






¡¡Î㤨¤Ð¥À¥¦¥ó¥í¡¼¥É¤·¤¿ UI ÍѤΠShader ¤ò¥Ù¡¼¥¹¤Ë²Ã¹©¤¹¤ë¡¢¤È¤¤¤Ã¤¿¤³¤È¤¬²Äǽ¤Ç¤¹¡£


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


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

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

Menu


´ðÁÃ

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

private



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

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