Navigation
API > API/Runtime > API/Runtime/AssetRegistry > API/Runtime/AssetRegistry/FAssetRegistryState
Description
Gets the LongPackageNames for all packages with the given PackageName. Call to check existence of a LongPackageName or find all packages with a ShortPackageName.
| Name | GetPackagesByName |
| 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 |
void GetPackagesByName
(
FStringView PackageName,
TArray< FName > & OutPackageNames
) const
Parameters
| Name | Remarks |
|---|---|
| PackageName | Name of the package to find, may be a LongPackageName or ShortPackageName. |
| OutPackageNames | All discovered matching LongPackageNames are appended to this array. |