{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2024%2F03%2F13%2F143935\" title=\"\u3010Unity\u3011ArgumentException: GetComponent requires that the requested component &#39;GameObject&#39; derives from MonoBehaviour or Component or is an interface. - \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>","height":"190","provider_url":"https://hatena.blog","image_url":null,"provider_name":"Hatena Blog","url":"https://baba-s.hatenablog.com/entry/2024/03/13/143935","version":"1.0","title":"\u3010Unity\u3011ArgumentException: GetComponent requires that the requested component 'GameObject' derives from MonoBehaviour or Component or is an interface.","width":"100%","blog_url":"https://baba-s.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/baba_s/","author_name":"baba_s","published":"2024-03-13 14:39:35","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","type":"rich","categories":[],"description":"\u6982\u8981 using UnityEngine; public class Example : MonoBehaviour { private void Start() { var go = gameObject.GetComponent<GameObject>(); } } \u4e0a\u8a18\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u305f\u3089 ArgumentException: GetComponent requires that the requested component 'GameObject' derives from MonoBehaviour or Component or is an interface. \u3053\u306e\u4f8b\u5916\u304c\u2026"}