{"id":1732,"date":"2022-06-05T14:29:27","date_gmt":"2022-06-05T05:29:27","guid":{"rendered":"https:\/\/dalomo.net\/blog\/?p=1732"},"modified":"2022-09-19T10:53:02","modified_gmt":"2022-09-19T01:53:02","slug":"%e3%80%8e%e6%9d%b1%e4%ba%ac%e3%83%91%e3%82%bd%e3%82%b3%e3%83%b3%e3%82%af%e3%83%a9%e3%83%96%e3%80%8f%e3%81%a7%e3%82%a2%e3%82%a4%e3%83%89%e3%83%ab%e3%81%a8unity%e3%82%92%e5%ad%a6%e3%81%b6-%e2%91%a1","status":"publish","type":"post","link":"https:\/\/dalomo.net\/blog\/2022\/06\/05\/1732\/","title":{"rendered":"\u300e\u6771\u4eac\u30d1\u30bd\u30b3\u30f3\u30af\u30e9\u30d6\u300f\u3067\u30a2\u30a4\u30c9\u30eb\u3068Unity\u3092\u5b66\u3076 \u2461 \u30a2\u30af\u30b7\u30e7\u30f3\u30b2\u30fc\u30e0"},"content":{"rendered":"<h1>\u30a2\u30af\u30b7\u30e7\u30f3\u30b2\u30fc\u30e0\u3092\u4f5c\u6210\u4e2d<\/h1>\n<p><a href=\"https:\/\/www.bs-tvtokyo.co.jp\/nogi_paso\/\">https:\/\/www.bs-tvtokyo.co.jp\/nogi_paso\/<\/a><\/p>\n<p><a href=\"https:\/\/twitter.com\/nogi_paso\">https:\/\/twitter.com\/nogi_paso<\/a><\/p>\n<p><a href=\"https:\/\/tver.jp\/series\/srem5wd6dj\">https:\/\/tver.jp\/series\/srem5wd6dj<\/a><\/p>\n<p>\u5f15\u304d\u7d9a\u304d\u3084\u3063\u3066\u3053\u30fc\u3002<\/p>\n<h2>\u30b9\u30d7\u30e9\u30a4\u30c8\u3092\u4f5c\u6210<\/h2>\n<p>\u756a\u7d44\u3067\u306f\u8b1b\u5e2b\u306e\u65b9\u304c\u30b2\u30fc\u30e0\u7528\u306e\u753b\u50cf\u3092\u7528\u610f\u3057\u3066\u304f\u308c\u3066\u3001\u305d\u308c\u3068\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u7f6e\u304d\u63db\u3048\u3066\u3044\u3063\u3066\u3044\u305f\u3002\u81ea\u5206\u306f\u6301\u3063\u3066\u3044\u306a\u3044\u3057\u3001\u8b1b\u5e2b\u306e\u65b9\u306eTwitter\u3092\u898b\u305f\u3051\u3069\u516c\u958b\u3055\u308c\u3066\u308b\u611f\u3058\u3067\u306f\u306a\u304b\u3063\u305f\u306e\u3067\u7528\u610f\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3068\u308a\u307eBlock\u3068Player\u306e\u753b\u50cf\u3092\u7a81\u8cab\u3067\u4f5c\u3063\u305f\u3002png\u5f62\u5f0f\u3067\u5927\u304d\u3055\u304c\u5206\u304b\u3089\u3093\u304b\u3063\u305f\u306e\u306748\u00d748(\u5f8c\u3067\u5206\u304b\u308b\u304c\u756a\u7d44\u57fa\u6e96\u3060\u306832\u00d732\u3060\u3063\u305f)\u3001Player\u306e\u65b9\u306f\u5468\u308a\u306f\u900f\u904e\u3055\u305b\u3066\u308b\u306f\u305a\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1740\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/block.png\" alt=\"\" width=\"48\" height=\"48\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1741\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/player.png\" alt=\"\" width=\"48\" height=\"48\" \/><\/p>\n<p>\u3067\u3001Project\u306eAssets\u30d5\u30a9\u30eb\u30c0\u3092\u9078\u629e\u3057\u3066\u3001\u53f3\u30af\u30ea\u30c3\u30af\u3001Import New Asset&#8230;\u3067\u753b\u50cf\u3092\u9078\u629e\u3059\u308b\u3068\u30a8\u30c7\u30a3\u30bf\u306b\u53d6\u308a\u8fbc\u307e\u308c\u308b\u3002<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un06.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1742 size-medium\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un06-300x162.png\" alt=\"\" width=\"300\" height=\"162\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un06-300x162.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un06-768x415.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un06.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h2>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u7f6e\u304d\u63db\u3048<\/h2>\n<p>Hierarchy\u306eBlock\u3092\u9078\u629e\u3001Inspector\u5185\u306eSprite Renderer\u3001Sprite\u306e\u6240\u306b\u3055\u3063\u304d\u8aad\u307f\u8fbc\u3093\u3060Block\u306e\u753b\u50cf\u3092\u30c9\u30e9\u30c3\u30b0\u3059\u308b\u3068\u8a2d\u5b9a\u3055\u308c\u308b\u3002Player\u3082\u540c\u69d8\u3002Color\u306f\u767d\u306b\u623b\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un07.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1743 size-medium\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un07-300x162.png\" alt=\"\" width=\"300\" height=\"162\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un07-300x162.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un07-768x415.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un07.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h2>\u5f53\u305f\u308a\u5224\u5b9a\u306e\u30ea\u30bb\u30c3\u30c8<\/h2>\n<p>\u73fe\u5728\u306e\u72b6\u614b\u3060\u3068\u5f53\u305f\u308a\u5224\u5b9a\u304c\u753b\u50cf\u306b\u5bfe\u3057\u3066\u904e\u5270\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u308b\u3002\u4f8b\u3048\u3070\u4eca\u306e\u72b6\u614b\u3067\u5b9f\u884c\u3055\u305b\u308b\u3068\u30d6\u30ed\u30c3\u30af\u3068\u30d7\u30ec\u30a4\u30e4\u30fc\u306e\u9593\u306b\u7a7a\u9593\u304c\u3067\u304d\u308b\u3002\u306a\u306e\u3067\u305d\u308c\u3092\u6539\u5584\u3059\u308b\u3002Hierarchy\u306ePlayer\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001Inspector\u306eCircle Cllider 2D\u306e\u30bf\u30a4\u30c8\u30eb\u53f3\u7aef\u306b\u3042\u308b&#8221;\u2026&#8221;\u306e\u4e2d\u306bReset\u3066\u3042\u308b\u306e\u3067\u305d\u308c\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u30b7\u30fc\u30f3\u5185\u7dd1\u7dda\u3067\u8868\u73fe\u3055\u308c\u3066\u308b\u5f53\u305f\u308a\u5224\u5b9a\u304c\u753b\u50cf\u306b\u30d5\u30a3\u30c3\u30c8\u3057\u305f\u3002Block\u3082\u540c\u69d8\u306b\u3002\u3042\u3068\u3001\u30b2\u30fc\u30e0\u753b\u9762\u4e0a\u90e8\u306eFree Aspect\u309216:9\u306b\u5909\u66f4\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un08.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1744 size-medium\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un08-300x162.png\" alt=\"\" width=\"300\" height=\"162\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un08-300x162.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un08-768x415.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un08.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h2>\u30d7\u30ec\u30cf\u30d6\u5316\u3092\u4f7f\u3063\u3066\u8db3\u5834\u3092\u4f5c\u308b<\/h2>\n<p>\u30d6\u30ed\u30c3\u30af\u3092\u30b3\u30d4\u30fc\u3059\u308b\u305f\u3081\u306b\u3001\u8272\u3005\u306a\u60c5\u5831\u304c\u5165\u3063\u305f\u307e\u307e\u90e8\u54c1\u3068\u3057\u3066\u6271\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3092\u30d7\u30ec\u30cf\u30d6\u5316\u3068\u3044\u3046\u3089\u3057\u3044\u3002Hierarchy\u306eBlock\u3092Assets\u306b\u30c9\u30e9\u30c3\u30b0\u3059\u308b\u3002\u3067\u3001\u305d\u308c\u3092Assets\u304b\u3089\u30b7\u30fc\u30f3\u306b\u30c9\u30e9\u30c3\u30b0\u3059\u308b\u3068\u65b0\u305f\u306b\u8868\u793a\u3055\u308c\u305f\uff01\u304a\u30fc\u3059\u3054\u3044\uff5e\u3002<\/p>\n<p>\u30c9\u30e9\u30c3\u30b0\u3092\u7e70\u308a\u8fd4\u3057\u3066\u8db3\u5834\u3092\u4f5c\u308b\u308f\u3051\u3060\u3051\u3069\u3001\u6574\u5217\u3055\u305b\u308b\u306e\u304c\u5927\u5909\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30b7\u30fc\u30f3\u306e\u5f8c\u308d\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u30b0\u30ea\u30c3\u30c9\u306b\u5408\u308f\u305b\u308b\u3088\u3046\u306b\u3067\u304d\u308b\u3002\u3067\u3082\u756a\u7d44\u3068\u8868\u793a\u304c\u9055\u3046\uff1f\u30a8\u30c7\u30a3\u30bf\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u9055\u3046\u304b\u3089\u304b\u306a\u2026\u3002<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un09.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1745 size-medium\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un09-300x207.png\" alt=\"\" width=\"300\" height=\"207\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un09-300x207.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un09.png 651w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u304a\u305d\u3089\u304f\u3053\u306e\u78c1\u77f3\u30de\u30fc\u30af\u304c\u4ed8\u3044\u3066\u308b\u3084\u3064\u3060\u3068\u601d\u3046\u3093\u3060\u3051\u3069\u3001\u30b0\u30ec\u30fc\u30a2\u30a6\u30c8\u3057\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u3002\u30c4\u30fc\u30eb\u30c1\u30c3\u30c3\u30d7\u306b\u306f&#8221;Toggle Grid snapping on and off. Available when you set tool handle rotation to global.&#8221;\u3066\u306a\u3063\u3066\u308b\u3002\u3044\u308d\u3044\u308d\u8a66\u3057\u305f\u3068\u3053\u308d\u3001\u3055\u3063\u304d\u306e\u753b\u50cf\u306e\u5de6\u304b\u30892\u756a\u76ee\u3092global\u306b\u3059\u308b\u3068\u9078\u629e\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002\u610f\u5473\u306f\u308f\u304b\u308a\u307e\u305b\u3093\u3002\u305d\u3057\u305f\u3089\u78c1\u77f3\u4ed8\u304d\u306e\u30b0\u30ea\u30c3\u30c9\u30de\u30fc\u30af\u306e\u53f3\u5074\u306e\u4e0b\u4e09\u89d2\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001Grid size\u3092\u30d6\u30ed\u30c3\u30af\u306e\u30b5\u30a4\u30ba\u306e\u534a\u5206\u306e0.24\u306b\u3059\u308b(\u756a\u7d44\u3060\u3068\u753b\u50cf\u30b5\u30a4\u30ba\u304c0.32\u3067\u30b0\u30ea\u30c3\u30c9\u30b5\u30a4\u30ba\u304c0.16)\u3002\u305d\u3046\u3059\u308b\u3068\u3044\u3044\u611f\u3058\u306b\u6574\u5217\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1746 size-medium\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un10-300x162.png\" alt=\"\" width=\"300\" height=\"162\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un10-300x162.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un10-768x415.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2022\/06\/un10.png 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h2>\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u304c\u52d5\u304f\u3088\u3046\u306b\u30d7\u30ed\u30b0\u30e9\u30e0<\/h2>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306eRigidbody\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u3057\u3066\u3044\u304f\u3002Hierarchy\u306ePlayer\u3092\u9078\u629e\u3001Inspector\u306eAdd Component\u3067New Script\u3092\u9078\u3076\u3002\u540d\u524d\u3092Player\u306b\u5909\u66f4\u3059\u308b\u3002Script\u884c\u306e\u53f3\u5074\u306ePlayer\u3063\u3066\u8868\u793a\u3055\u308c\u3066\u308b\u3068\u3053\u308d\u3092\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001\u756a\u7d44\u3060\u3068\u30a8\u30c7\u30a3\u30bf\u304c\u958b\u304f\u3002\u3053\u308c\u306f\u306a\u3093\u3060\u308d\u3046\u3001Visual Studio\u3063\u307d\u3044\u304b\u306a\uff1f\u756a\u7d44\u304c\u3053\u306e\u305f\u3081\u306b\u7528\u610f\u3057\u305f\u306e\u304b\u306a\uff5e\u3002\u81ea\u5206\u3082\u5165\u308c\u3066\u307f\u308b\u3002<\/p>\n<p><a href=\"https:\/\/visualstudio.microsoft.com\/ja\/free-developer-offers\/\">https:\/\/visualstudio.microsoft.com\/ja\/free-developer-offers\/<\/a><\/p>\n<p>\u7121\u511f\u7248\u3063\u3066\u66f8\u3044\u3066\u3042\u3063\u305f\u3051\u3069\u7121\u6599\u306a\u306e\u304b\u306a\uff1f\u305f\u3076\u3093\u3002\u3042\u3068\u304a\u305d\u3089\u304fUnity\u3068\u9023\u643a\u3057\u3066\u958b\u767a\u3059\u308b\u3088\u3046\u306a\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u308b\u3063\u307d\u3044\u304b\u306a\u3041\u3002\u3046\u30fc\u3093\u3001\u305d\u306e\u3084\u308a\u65b9\u304c\u308f\u304b\u3089\u3093\u3002\u2026\u2026\u3082\u3046Visual Studio Code\u3067\u3044\u3044\u304b\u306a\u2026\u3002\u305d\u3063\u3061\u3067\u958b\u3044\u3066\u3001\u8a00\u308f\u308c\u308b\u304c\u307e\u307eC#\u306e\u62e1\u5f35\u5165\u308c\u305f\u3002\u306a\u3093\u3068\u304b\u306a\u308b\u3060\u308d\u3002\u306a\u3093\u306a\u3044\u304b\u306a\uff1f\u305d\u3057\u305f\u3089\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u304f\u3002<\/p>\n<pre><code class=\"cs\">using System.Collections;\r\nusing System.Collections.Generic;\r\nusing UnityEngine;\r\n\r\npublic class Player : MonoBehaviour\r\n{\r\n    private Rigidbody2D rigidbody2d;\r\n\r\n    \/\/ Start is called before the first frame update\r\n    void Start()\r\n    {\r\n        rigidbody2d = GetComponent();\r\n\r\n    }\r\n\r\n    \/\/ Update is called once per frame\r\n    void Update()\r\n    {\r\n        rigidbody2d.velocity = new Vector2(1, rigidbody2d.velocity.y);\r\n    }\r\n}<\/code><\/pre>\n<p>start\u306f\u6700\u521d\u306e\u4e00\u56de\u3060\u3051\u547c\u3070\u308c\u3066\u3001update\u306f60fps\u3067\u30eb\u30fc\u30d7\u3057\u3066\u547c\u3070\u308c\u308b\u3089\u3057\u3044\u3002Arduino\u307f\u305f\u3044\u3067\u3059\u306d\u3002<\/p>\n<h2>Unity\u4e0a\u3067\u52d5\u304f\u304b\u78ba\u8a8d<\/h2>\n<p>\u30b3\u30fc\u30c9\u3092\u4e0a\u66f8\u304d\u4fdd\u5b58\u3057\u305f\u3068\u3053\u308d\u3067Unity\u306b\u623b\u308a\u3001\u518d\u751f\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3002<\/p>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/qznuf9giN48\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>\u304a\u304a\uff5e\u52d5\u3044\u305f\uff01\u4eca\u56de\u306f\u3053\u3053\u307e\u3067\uff5e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30a2\u30af\u30b7\u30e7\u30f3\u30b2\u30fc\u30e0\u3092\u4f5c\u6210\u4e2d https:\/\/www.bs-tvtokyo.co.jp\/nogi_paso\/ https:\/\/twitter.com\/nogi_paso https:\/\/tver.jp\/series\/srem &hellip; <a href=\"https:\/\/dalomo.net\/blog\/2022\/06\/05\/1732\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1749,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[9],"tags":[166,165],"class_list":["post-1732","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-9","tag-unity","tag-165"],"_links":{"self":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/1732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/comments?post=1732"}],"version-history":[{"count":7,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/1732\/revisions"}],"predecessor-version":[{"id":1824,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/1732\/revisions\/1824"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media\/1749"}],"wp:attachment":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media?parent=1732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/categories?post=1732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/tags?post=1732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}