GetTransientPackage

Returns the transient top-level package, which is useful for temporarily storing objects that should never be saved

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h

Include

#include "UObject/UObjectGlobals.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/Obj.cpp

Syntax

UPackage * GetTransientPackage()

Remarks

Returns the transient top-level package, which is useful for temporarily storing objects that should never be saved