{"title":"\u3010Unity\u3011Cannot instantiate objects with a parent which is persistent. New object will be created without a parent.","width":"100%","height":"190","author_url":"https://blog.hatena.ne.jp/baba_s/","provider_name":"Hatena Blog","categories":["Unity","Unity - \u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0"],"type":"rich","provider_url":"https://hatena.blog","published":"2021-06-17 09:00:00","url":"https://baba-s.hatenablog.com/entry/2021/06/17/090000","author_name":"baba_s","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2021%2F06%2F17%2F090000\" title=\"\u3010Unity\u3011Cannot instantiate objects with a parent which is persistent. New object will be created without a parent. - \u30b3\u30ac\u30cd\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","description":"\u6982\u8981 using UnityEngine; public class Example : MonoBehaviour { public GameObject m_prefab; private void Awake() { Instantiate ( original: m_prefab, parent: m_prefab.transform // \u2605 ); } } \u65b0\u3057\u3044\u30b2\u30fc\u30e0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u751f\u6210\u3059\u308b\u6642\u306b \u305d\u306e\u30b2\u30fc\u30e0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u89aa\u306b\u30d7\u30ec\u30cf\u30d6\u3092\u6307\u5b9a\u3057\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u3068 Cannot instantiate objects with a parent which is persist\u2026","version":"1.0","blog_url":"https://baba-s.hatenablog.com/","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/94867065/1535279515352365"}