{"id":5311,"date":"2021-02-04T18:24:34","date_gmt":"2021-02-04T16:24:34","guid":{"rendered":"https:\/\/unitycoder.com\/blog\/?p=5311"},"modified":"2021-02-04T18:24:34","modified_gmt":"2021-02-04T16:24:34","slug":"you-are-trying-to-replace-or-create-a-prefab-from-the-instance-that-references-a-missing-script-this-is-not-allowed-please-change-the-script-or-remove-it-from-the-gameobject","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2021\/02\/04\/you-are-trying-to-replace-or-create-a-prefab-from-the-instance-that-references-a-missing-script-this-is-not-allowed-please-change-the-script-or-remove-it-from-the-gameobject\/","title":{"rendered":"You are trying to replace or create a Prefab from the instance &#8216;&#8230;&#8217; that references a missing script. This is not allowed. Please change the script or remove it from the GameObject."},"content":{"rendered":"\n<p><strong>Solution:<\/strong><br>&#8211; Open the prefab that it mentions in the error, then check for missing script and remove it.<br>&#8211; It doesn&#8217;t help if you remove missing script in the scene from that prefab, or even if you unpack that prefab, need to remove it from the actual prefab in Project window.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Solution:&#8211; Open the prefab that it mentions in the error, then check for missing script and remove it.&#8211; It doesn&#8217;t help if you remove missing script in the scene from that prefab, or even if you unpack that prefab, need to remove it from the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[797,3],"tags":[481,1193],"class_list":["post-5311","post","type-post","status-publish","format-standard","hentry","category-tips","category-unity3d","tag-error","tag-prefab"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-1nF","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=5311"}],"version-history":[{"count":1,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5311\/revisions"}],"predecessor-version":[{"id":5312,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5311\/revisions\/5312"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=5311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=5311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=5311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}