{"width":"100%","provider_url":"https://hatena.blog","published":"2018-02-02 21:10:00","title":"\u3010Unity\u3011Internal_CreateGameObject is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead.","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/94867065/1535279515352365","height":"190","provider_name":"Hatena Blog","version":"1.0","type":"rich","author_url":"https://blog.hatena.ne.jp/baba_s/","author_name":"baba_s","description":"\u6982\u8981 using UnityEngine; public class Example : MonoBehaviour { private GameObject gameObject = new GameObject(); } \u4e0a\u8a18\u306e\u3088\u3046\u306b\u3001\u30e1\u30f3\u30d0\u5909\u6570\u306e\u5b9a\u7fa9\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067 new GameObject() \u3092\u8a18\u8ff0\u3059\u308b\u3068 Internal_CreateGameObject is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or \u2026","url":"https://baba-s.hatenablog.com/entry/2018/02/02/211000","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2018%2F02%2F02%2F211000\" title=\"\u3010Unity\u3011Internal_CreateGameObject is not allowed to be called from a MonoBehaviour constructor (or instance field initializer), call it in Awake or Start instead. - \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_url":"https://baba-s.hatenablog.com/","categories":["Unity","Unity - \u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0"]}