Duplicate UObject into another one

Hi

After some days searching the WWW I’ve found out that your answer is the only ONE. Neither other UE4 users nor official documentation explain how to use DuplicateObject function.

I ask your help because I got problem with duplicating objects. After executing this function I have absolutely equal copy of the source object, but with one difference - new object is invisible, doesn’t collide with other objects and gravity doesn’t work for that object. All parameters are the same: simulate physics, enable gravity, visible and anyway, as I said, it’s invisible and useless. Also it is no reaction if I am changing parameters on that object.

I’ve tried to copy simple AActor object, AStaticMeshActor and blueprint “complex” objects. All with one result.

Would you please help me and show any example of using DuplicateObject? Maybe it is necessary to do some other steps after calling DuplicateObject function?

Thank you,

1 Like