does_asset_exist for Levels

stef_bracke
Thu, 28 Mar 2024 12:17:36 +0000
Programming & Scripting

In a Python script I am creating levels. Upon rerunning the script I’d like to check for existing levels to avoid overwriting.
unreal.EditorAssetLibrary.does_asset_exist() and unreal.EditorAssetSubsystem.does_asset_exist() don’t appear to work for levels (according to documentation) but are not providing an alternative.

What would be an alternative command, if any?

2 posts - 2 participants