Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/FPackageName
Description
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'
| Name | IsValidObjectPath |
| 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 bool IsValidObjectPath
(
FStringView InObjectPath,
FText * OutReason
)
true if a valid object path
Parameters
| Name | Remarks |
|---|---|
| InObjectPath | The object path to test |
| OutReason | When returning false, this will provide a description of what was wrong with the name. |