FEditorFileUtils::SaveWorlds

Save all packages corresponding to the specified world, with the option to override their path and also apply a prefix.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/FileHelpers.h

Include

#include "FileHelpers.h"

Source

/Engine/Source/Editor/UnrealEd/Private/FileHelpers.cpp

Syntax

static bool SaveWorlds
(
    UWorld * InWorld,
    const FString & RootPath,
    const TCHAR * Prefix,
    TArray< FString > & OutFilenames
)

Remarks

Save all packages corresponding to the specified world, with the option to override their path and also apply a prefix.

Returns

true if at least one level was saved. If bPIESaving, will be true is ALL worlds were saved.

Parameters

Parameter

Description

InWorld

The world to save (including its children)

RootPath

Root Path override, replaces /Game/ in original name

Prefix

Optional prefix for base filename, can be NULL

OutFilenames

The file names of all successfully saved worlds will be added to this

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss