FPackagePath::GetExtension

Report the extension this PackagePath uses for the given segment

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

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

Include

#include "Misc/PackagePath.h"

Source

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

Syntax

EPackageExtension GetExtension
(
    EPackageSegment PackageSegment,
    FStringView & OutCustomExtension
) const

Remarks

Report the extension this PackagePath uses for the given segment

Returns

the EPackageExtension for the given segment, which is possibly EPackageExtension::Unspecified or EPackageExtension::Custom for EPackageSegment::Header

Parameters

Parameter

Description

PackageSegment

The segment of the extension to look up

OutCustomExtension

If the segment is EPackageSegment::Header and this PackagePath has a custom header extension, filled with the Custom string, otherwise set to empty. CustomExtension can become invalid the next time a function (even a const function) or the destructor is called on this FPackagePath