Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FPackageName
Description
Looks for an existing allocated MountPoint with the given RootLongPackageName and RootLocalPath, adds it if it does not already exist. These fields uniquely identify a MountPoint so at most one can exist. When the MountPoint is returned, it might or might not be mounted, call MountPoint->IsMounted() to check for mounted. This function can only return null if the input arguments are not valid text for RootLongPackageName or RootLocalPath.
| Name | FindOrAddMountPoint |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Misc/PackageName.h |
| Include Path | #include "Misc/PackageName.h" |
| Source | /Engine/Source/Runtime/CoreUObject/Private/Misc/PackageName.cpp |
static TRefCountPtr < UE::PackageName::IMountPoint > FindOrAddMountPoint
(
FStringView RootLongPackageName,
FStringView RootLocalPath
)
RefCountPtr to the IMountPoint, or nullptr if failed.
Parameters
| Name | Remarks |
|---|---|
| RootLongPackageName | LongPackageName location for the root of the MountPoint, Examples: /Engine/, /PluginName/ |
| RootLocalPath | LocalPath location for the root of the MountPoint, Examples: ../../../Engine/Content, d:\FullPathToUnreal\Engine\Plugins\PluginName |