UE5 Renaming An Object On Top Of An Existing Object Is Not Allowed

Table of Contents

If you’re getting this error then either you or someone has called UObject::Rename(Name,Outer) with an existing name. Unreal engine will break and crash if you try to overwrite a UObject this way.

MakeUniqueObjectName

The solution is to call Rename() without any arguments on the old object before overwriting it.

 

Unreal  Engine will then call MakeUniqueObjectName and give some random name which will free up the name you want to use.

 

A good area to do this is within the reimport function when reimporting your custom asset

5/5

Gamechanger plugin for notehighway rhythm games and music visualizers

5/5

Add Text and 2D UMG widgets to Level Sequences

5/5

Simplify your Plugin Development with the Unreal Projects Manager

5/5

Learn how to create unreal engine plugins from scratch and sell them on Fab.com.