{"id":3536,"date":"2022-05-26T16:07:54","date_gmt":"2022-05-26T14:07:54","guid":{"rendered":"https:\/\/store.algosyntax.com\/?post_type=asx-lms-tutorial-cpt&#038;p=3536"},"modified":"2026-03-09T05:36:00","modified_gmt":"2026-03-09T03:36:00","slug":"ue5-renaming-an-object-on-top-of-an-existing-object","status":"publish","type":"asx-lms-tutorial-cpt","link":"https:\/\/store.algosyntax.com\/tutorials\/unreal-engine\/ue5-renaming-an-object-on-top-of-an-existing-object\/","title":{"rendered":"UE5 Renaming An Object On Top Of An Existing Object Is Not Allowed"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"3536\" class=\"elementor elementor-3536\" data-elementor-post-type=\"asx-lms-tutorial-cpt\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d7d0293 e-con-full e-flex e-con e-parent\" data-id=\"d7d0293\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-20ae1ae elementor-widget elementor-widget-text-editor\" data-id=\"20ae1ae\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>If you&#8217;re getting this error then either you or someone has called <a href=\"https:\/\/docs.unrealengine.com\/5.0\/en-US\/API\/Runtime\/CoreUObject\/UObject\/UObject\/Rename\/\" target=\"_blank\" rel=\"noopener\">UObject::Rename<\/a>(Name,Outer) with an existing name. Unreal engine will break and crash if you try to overwrite a UObject this way.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-eb6a289 elementor-widget elementor-widget-heading\" data-id=\"eb6a289\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">MakeUniqueObjectName<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bdb000e elementor-widget elementor-widget-text-editor\" data-id=\"bdb000e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t\t\t\t\t\t<p>The solution is to call <a href=\"https:\/\/docs.unrealengine.com\/5.0\/en-US\/API\/Runtime\/CoreUObject\/UObject\/UObject\/Rename\/\" target=\"_blank\" rel=\"noopener\">Rename()<\/a> without any arguments on the old object before overwriting it.<\/p><p>\u00a0<\/p><p>Unreal\u00a0 Engine will then call <a href=\"https:\/\/docs.unrealengine.com\/4.27\/en-US\/API\/Runtime\/CoreUObject\/UObject\/MakeUniqueObjectName\/\" target=\"_blank\" rel=\"noopener\">MakeUniqueObjectName<\/a> and give some random name which will free up the name you want to use.<\/p><p>\u00a0<\/p><p>A good area to do this is within the reimport function when <a href=\"https:\/\/store.algosyntax.com\/tutorials\/unreal-engine\/tutorial-ue5-add-reimport-support-to-custom-asset\/\">reimporting your custom asset<\/a>.\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"featured_media":0,"template":"","asx-lms-tutorial-categories":[58,45],"asx-lms-tutorial-tags":[46,51],"class_list":["post-3536","asx-lms-tutorial-cpt","type-asx-lms-tutorial-cpt","status-publish","hentry","asx-lms-tutorial-categories-unreal-c-api","asx-lms-tutorial-categories-unreal-engine","asx-lms-tutorial-tags-cpp","asx-lms-tutorial-tags-errors","entry"],"acf":[],"_links":{"self":[{"href":"https:\/\/store.algosyntax.com\/asx-rest\/wp\/v2\/asx-lms-tutorial-cpt\/3536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/store.algosyntax.com\/asx-rest\/wp\/v2\/asx-lms-tutorial-cpt"}],"about":[{"href":"https:\/\/store.algosyntax.com\/asx-rest\/wp\/v2\/types\/asx-lms-tutorial-cpt"}],"version-history":[{"count":0,"href":"https:\/\/store.algosyntax.com\/asx-rest\/wp\/v2\/asx-lms-tutorial-cpt\/3536\/revisions"}],"wp:attachment":[{"href":"https:\/\/store.algosyntax.com\/asx-rest\/wp\/v2\/media?parent=3536"}],"wp:term":[{"taxonomy":"asx-lms-tutorial-categories","embeddable":true,"href":"https:\/\/store.algosyntax.com\/asx-rest\/wp\/v2\/asx-lms-tutorial-categories?post=3536"},{"taxonomy":"asx-lms-tutorial-tags","embeddable":true,"href":"https:\/\/store.algosyntax.com\/asx-rest\/wp\/v2\/asx-lms-tutorial-tags?post=3536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}