CreatePackage

Find an existing package by name or create it if it doesn't exist

Windows
MacOS
Linux

Deprecated

  • Use CreatePackage overload that does not take the first Outer parameter. Specifying non-null outers for UPackages is no longer supported.

References

Module

CoreUObject

Header

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

Include

#include "UObject/UObjectGlobals.h"

Source

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

Syntax

UPackage * CreatePackage
(
    UObject * InOuter,
    const TCHAR * PackageName
)

Remarks

Find an existing package by name or create it if it doesn't exist

Returns

The existing package or a newly created one

Parameters

Parameter

Description

InOuter

The Outer object to search inside (unused)

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