Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/CoreUObject/Public/Misc/PackagePath.h |
Include |
#include "Misc/PackagePath.h" |
class FPackagePath
Internal class only; not used by blueprints. This class is only used in the CoreUObject linker layer and (optionally) as an argument to LoadPackage
Specifies a path to the contents of a UPackage that can be loaded from disk (or other persistent storage) through IPackageResourceManager Package contents are requested from the PackageResourceManager by FPackagePath and EPackageSegment FPackagePaths are stored internally in one of a few options necessary to maintain their construction arguments without losing data const FPackagePaths can still be mutated to be stored as another internal type const FPackagePaths can still be mutated to indicate which header extension was found for them on disk (It is illegal to have multiple packages on disk with the same PackagePath but different header extensions)
Name | Description | |
---|---|---|
|
FPackagePath() |
Construct an empty PackagePath |
|
FPackagePath ( |
|
|
FPackagePath ( |
Name | Description | ||
---|---|---|---|
|
AppendLocalBaseFilenameWithPath ( |
Append the Local (path,basename) of this PackagePath if known or available, or take no action if not |
|
|
AppendLocalFullPath ( |
Version of AppendLocalFullPath that takes a PackageSegment, otherwise same behavior as parameterless version |
|
|
AppendLocalFullPath ( |
Append the full relative LocalPath (path,basename,extension) |
|
|
AppendPackageName ( |
Append the PackageName indicated by this PackagePath if known or available, or take no action if not |
|
|
Empty() |
Free this PackagePath's data and set it to an empty PackagePath |
|
|
FromLocalPath ( |
Construct a PackagePath from a LocalPath string |
|
|
FromLocalPath ( |
Version of FromLocalPath that also returns the PackageSegment matching the Filename's extension |
|
|
FromMountedComponents ( |
Construct a PackagePath from the components of a MountedPath |
|
|
FromPackageNameChecked ( |
Construct a PackagePath from a LongPackageName StringView, FName, or TCHAR* |
|
|
FromPackageNameChecked ( |
Construct a PackagePath from a LongPackageName StringView, FName, or TCHAR* |
|
|
FromPackageNameChecked ( |
Construct a PackagePath from a LongPackageName StringView, FName, or TCHAR* |
|
|
FromPackageNameUnchecked ( |
Construct a PackagePath from a known valid LongPackageName FName |
|
|
GetCustomExtension() |
Return the custom string if this PackagePath is using HeaderExtension=EPackageExtension::Custom, otherwise return an empty string |
|
|
GetDebugName ( |
Version of GetDebugName that takes a PackageSegment, otherwise same behavior as parameterless version For EPackageSegment::Header, HeaderExtension is not indicated. |
|
|
GetDebugName() |
Returns a descriptor of this PackagePath, usable for an identifier in warning and log messages. |
|
|
GetDebugNameText() |
Returns GetDebugName converted to FText |
|
|
GetDebugNameText ( |
Version of GetDebugNameText that takes a PackageSegment, otherwise same behavior as parameterless version |
|
|
GetDebugNameWithExtension() |
Returns a descriptor of this PackagePath for the given segment, with extension. |
|
|
GetDebugNameWithExtension ( |
Version of GetDebugNameWithExtension that takes a PackageSegment, otherwise same behavior as parameterless version |
|
|
EPackageExte... |
GetExtension ( |
Report the extension this PackagePath uses for the given segment |
|
GetExtensionString ( |
Report the extension string this PackagePath uses for the given segment. |
|
|
const TCHAR ... |
GetExternalActorsFolderName() |
Get the folder name from which all external actors paths are created |
|
const TCHAR ... |
GetExternalObjectsFolderName() |
Get the folder name from which all external objects paths are created |
|
EPackageExte... |
GetHeaderExtension() |
Return the HeaderExtension |
|
GetLocalBaseFilenameWithPath() |
Return the Local (path,basename) of this PackagePath if known or available, or empty string if not |
|
|
GetLocalFullPath() |
Return the full LocalPath (path,basename,extension) |
|
|
GetLocalFullPath ( |
Version of GetLocalFullPath that takes a PackageSegment, otherwise same behavior as parameterless version |
|
|
const TCHAR ... |
GetOptionalSegmentExtensionModifier() |
Get the string identifying optional segments |
|
GetPackageFName() |
Return as an FName the PackageName indicated by this PackagePath if known or available, or NAME_None if not |
|
|
GetPackageName() |
Return the PackageName indicated by this PackagePath if known or available, or empty string if not |
|
|
GetPackageNameOrFallback() |
Returns the PackageName if available, otherwise the LocalPath |
|
|
TConstArrayV... |
GetPossibleExtensions ( |
Report the EPackageExtensions this PackagePath should look for on disk |
|
HasLocalPath() |
Return true if and only if GetLocalBaseFilenameWithPath returns non-empty |
|
|
HasPackageName() |
Return true if and only if GetPackageName returns non-empty |
|
|
IsEmpty() |
Return whether this is a PackagePath with no path information and can never identify a package on disk |
|
|
IsMountedPath() |
Return whether a mount point has been found for this PackagePath |
|
|
EPackageExte... |
ParseExtension ( |
Parse the extension from a filepath and convert it to an EPackageExtension. |
|
SetHeaderExtension ( |
Set the HeaderExtension to use, including a custom string if Extension is EPackageExtension::Custom |
|
|
TryFromMountedName ( |
Construct a PackagePath from a LocalPath or PackageName string, assuming the given LocalPath or PackageName is in a directory that is mounted (aka registered with FPackageName::MountPointExists) |
|
|
TryFromPackageName ( |
Attempt to construct a PackagePath from a LongPackageName StringView, FName, or TCHAR* |
|
|
TryFromPackageName ( |
Attempt to construct a PackagePath from a LongPackageName StringView, FName, or TCHAR* |
|
|
TryFromPackageName ( |
Attempt to construct a PackagePath from a LongPackageName StringView, FName, or TCHAR* |
|
|
TryMatchCase ( |
Set the capitalization of a PackagePath to match the given string |
Name | Description | ||
---|---|---|---|
|
operator!= ( |
||
|
FPackagePath... |
operator= ( |
|
|
FPackagePath... |
operator= ( |
|
|
operator== ( |
Comparsion operators. |
Name |
Description |
|
---|---|---|
|
EPackageIdType |