{"id":2471,"date":"2017-07-18T20:09:26","date_gmt":"2017-07-18T11:09:26","guid":{"rendered":"http:\/\/nantoka.filmm.info\/blog\/?p=2471"},"modified":"2017-07-18T20:09:26","modified_gmt":"2017-07-18T11:09:26","slug":"prefab%e3%81%ae%e5%90%8d%e5%89%8d%e3%82%92%e5%a4%89%e3%81%88%e3%82%8b","status":"publish","type":"post","link":"https:\/\/nantoka.filmm.info\/blog\/?p=2471","title":{"rendered":"Prefab\u306e\u540d\u524d\u3092\u5909\u3048\u308b"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u305f\u3076\u3093\u3053\u308c\u3067\u52d5\u304f\uff1f<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \">\t\t\/\/\u30ad\u30e3\u30e9\uff4e\u4f53\u4f5c\u6210\r\n\t\tfor (int i = 0; i &lt; sakusei; i++) {\r\n\t\t\tGameObject go = Instantiate (myInstance, new Vector3 (i + 1.0f, 0, 0), Quaternion.identity) as GameObject;\r\n\t\t\tstring myAIname =  \"AI\" + i.ToString ();\r\n\t\t\tgo.name = myAIname;\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>3\u884c\u76ee\u3000prefab\u3092\u751f\u6210\u3057\u305f\u5f8c\uff0cGameobject go\u306b\u3044\u308c\u308b\uff0e\u3053\u308c\u3067Clone\u3067\u306a\u304f\u306a\u308b<\/p>\n<p>4\u884c\u76ee\u3000for\u306e\u5909\u6570i\u3092\u5229\u7528\u3057\u305f\u540d\u524d\u3092AI1\u307f\u305f\u3044\u306b\u3059\u308b<\/p>\n<p>5\u884c\u76ee\u3000go\u306e\u540d\u524d\u30924\u884c\u76ee\u306e\u5909\u6570\u3000myAIname\u306b\u3059\u308b<\/p>\n<p>\u3053\u308c\u3067Prefab\u304c\u305d\u308c\u305e\u308c\u5225\u306e\u540d\u524d\u306b\u304b\u308f\u308b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; \u305f\u3076\u3093\u3053\u308c\u3067\u52d5\u304f\uff1f &nbsp; \/\/\u30ad\u30e3\u30e9\uff4e\u4f53\u4f5c\u6210 for (int i = 0; i &lt; sakusei; i++) { GameObject go = Instantiate (m &hellip; <a href=\"https:\/\/nantoka.filmm.info\/blog\/?p=2471\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Prefab\u306e\u540d\u524d\u3092\u5909\u3048\u308b<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,2,48],"tags":[],"class_list":["post-2471","post","type-post","status-publish","format-standard","hentry","category-c","category-unity","category-48"],"_links":{"self":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2471"}],"version-history":[{"count":2,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2471\/revisions"}],"predecessor-version":[{"id":2473,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2471\/revisions\/2473"}],"wp:attachment":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}