No announcement yet.

Duplicating a sublevel in code/blueprint

  • Filter
  • Time
  • Show
Clear All
new posts

    Duplicating a sublevel in code/blueprint

    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.

    Click image for larger version

Name:	image.png
Views:	23
Size:	58.3 KB
ID:	1718390

    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