Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/Misc > API/Runtime/CoreUObject/Misc/FPackageName
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 IsValidObjectPath
&40;
FStringView InObjectPath,
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. This validates that the packagename is valid, and also makes sure the object after package name is also correct. This will return false if passed a path starting with Classname' true if a valid object path
Parameters
| Name | Description |
|---|---|
| InObjectPath | The object path to test |
| OutReason | When returning false, this will provide a description of what was wrong with the name. |