RealDocs

FSoftObjectPath::AddPIEPackageName

function CoreUObject Since unknown
#include "UObject/SoftObjectPath.h"
Access: public Specifiers: static

Description

Registers a PIE duplicate package name so that FixupForPIE knows which packages have been duplicated for the current PIE session.

Caveats & Gotchas

  • This populates a global set used by all FSoftObjectPath instances. It must be called before FixupForPIE for the fixup to have any effect on paths referencing that package.
  • The registration is not undone automatically — call ClearPIEPackageNames when the PIE session ends to prevent stale entries from affecting the next session.

Signature

static COREUOBJECT_API void AddPIEPackageName(FName NewPIEPackageName)

Parameters

Name Type Description Default
NewPIEPackageName FName The PIE-prefixed package name to register (e.g. /Game/UEDPIE_0_MyMap).

Return Type

void

Example

Register a duplicated PIE package C++
// Called by the editor when a level is duplicated for PIE
FName PIEPackage = FName(TEXT("/Game/UEDPIE_0_TestLevel"));
FSoftObjectPath::AddPIEPackageName(PIEPackage);

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.