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

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

Consider investing in some of our plugins. They might save you some time.  Also helps supports these tutorials.

Instantly get access to our plugins like Blender Curves Importer and UMG Cinematics and more when  you support us on Patreon!

 Join Us On Discord For More Daily Tips!