Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/Misc > API/Runtime/CoreUObject/Misc/FPackageName > API/Runtime/CoreUObject/Misc/FPackageName/IsValidLongPackageName
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 |
static bool IsValidLongPackageName
&40;
FStringView InLongPackageName,
bool bIncludeReadOnlyRoots,
FText &42; OutReason
&41;
Remarks
Returns true if the path starts with a valid root (i.e. /Game/, /Engine/, etc) and contains no illegal characters. true if a valid long package name
Parameters
| Name | Description |
|---|---|
| InLongPackageName | The package name to test |
| bIncludeReadOnlyRoots | If true, will include roots that you should not save to. (/Temp/, /Script/) |
| OutReason | When returning false, this will provide a description of what was wrong with the name. |