Navigation
API > API/Runtime > API/Runtime/AssetRegistry > API/Runtime/AssetRegistry/FAssetRegistryState
Description
Returns the first LongPackageName found for the given PackageName. Issues a warning and returns the first (sorted lexically) if there is more than one. Call to check existence of a LongPackageName or find a package with a ShortPackageName.
| Name | GetFirstPackageByName |
| Type | function |
| Header File | /Engine/Source/Runtime/AssetRegistry/Public/AssetRegistry/AssetRegistryState.h |
| Include Path | #include "AssetRegistry/AssetRegistryState.h" |
| Source | /Engine/Source/Runtime/AssetRegistry/Private/AssetRegistryState.cpp |
FName GetFirstPackageByName
(
FStringView PackageName
) const
The first LongPackageName of the matching package, or NAME_None if not found.
Parameters
| Name | Remarks |
|---|---|
| PackageName | Name of the package to find, may be a LongPackageName or ShortPackageName. |