FPackageName::DoesPackageExist

Checks if the package exists on disk.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/Misc/PackageName.h

Include

#include "Misc/PackageName.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/Misc/PackageName.cpp

Syntax

static bool DoesPackageExist
(
    const FString & LongPackageName,
    const FGuid * Guid,
    FString * OutFilename,
    bool InAllowTextFormats
)

Remarks

Checks if the package exists on disk.

Returns

true if the specified package name points to an existing package, false otherwise.

Parameters

Parameter

Description

LongPackageName

Package name.

OutFilename

Package filename on disk.

InAllowTextFormats

Detect text format packages as well as binary (priority to text)

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