Hi - I’m trying to find out how to duplicate an asset using a blueprint utility. Specifically a sub-level (i.e. a umap asset). Obviously you can do it with the mouse in the content browser, but I’m trying to find a way to automate the process as part of a longer chain of required actions.
There is a handy Duplicate Asset function you can add into your blueprint, but frustratingly, it doesn’t work with levels. My guess is because this function needs to load the asset into memory, and can’t simply mimic the content browser action. That’s just a guess.
I’ve tried accessing this functionality with a blueprint function library, but have ended up in a rabbit hole of editor code (SContentBrowser.cpp - OnDuplicateRequested inside the engine) but I’m not sure if this is a sane approach, let alone how to make it work
If anybody has any thoughts on this, I’d love to hear them
Cheers,
Robin.
