Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/Misc > API/Runtime/CoreUObject/Misc/FPackagePath > API/Runtime/CoreUObject/Misc/FPackagePath/FromPackageNameChecked
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 |
static FPackagePath FromPackageNameChecked
&40;
FStringView InPackageName
&41;
Remarks
Construct a PackagePath from a LongPackageName StringView, FName, or TCHAR*
Does not handle InPackageNames that are actually LocalPaths; use TryFromMountedName if you need to handle either PackageName or LocalPath Gives an error and returns an empty PackagePath if InPackageName is not a valid LongPackageName (/Root/Folder/File) Will be converted to a MountedPath when the LocalPath is required; if the package is not mounted at that point the LocalPath will be empty The constructed PackagePath
Parameters
| Name | Description |
|---|---|
| InPackageName | A valid LongPackageName, does not have to be mounted or existing |