WorksDocumentation

Save Level Packages

Select and save packages

Start with GetDirtyPackages to find the packages to save. Choose CurrentLevel for the current level or AllLoaded to review dirty packages across all loaded levels. CurrentLevel includes loaded external object packages and a dirty separate Map BuiltData package for the current level. SavePackages takes exact PackageNames and defaults to DryRun=true: preview the selection, then pass its PlanHash with DryRun=false. Saving an empty package may delete its existing file, so it requires AllowDeleteEmptyPackages. This tool refuses to write locally while a source control provider is enabled. After the save, review the result for each package. If any packages are still dirty, check whether they belong to this change before starting another preview. The parameterless SaveLevel still saves the current level and the external object packages included by the engine, and now reports the actual level package path and remaining dirty packages. Disk saves are outside editor Undo.