![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Enumerations | |
| enum class | EFilterMode : uint8 { Inclusive , Exclusive } |
|
strong |
| TOptional< FAssetDataTagMap > UE::AssetRegistry::Utils::AddNonOverlappingTags | ( | FAssetData & | ExistingAssetData, |
| const FAssetData & | NewAssetData | ||
| ) |
| void UE::AssetRegistry::Utils::EnumerateAllMemoryAssets | ( | TSet< FName > & | OutPackageNamesWithAssets, |
| bool & | bOutStopIteration, | ||
| TFunctionRef< bool(FAssetData &&)> | Callback | ||
| ) |
Iterate all UObjects where this->IsAsset and !ShouldSkipAsset, create an FAssetData for them and call the callback. Stores packagenames of all assets found in OutPackageNamesWithAssets for later filtering of on-disk assets. Stops iteration and sets bOutStopIteration=true iff the callback returns false.
| void UE::AssetRegistry::Utils::EnumerateMemoryAssets | ( | const FARCompiledFilter & | InFilter, |
| TSet< FName > & | OutPackageNamesWithAssets, | ||
| bool & | bOutStopIteration, | ||
| UE::AssetRegistry::Private::FInterfaceRWLock & | InterfaceLock, | ||
| const FAssetRegistryState & | GuardedDataState, | ||
| TFunctionRef< bool(FAssetData &&)> | Callback, | ||
| bool | bSkipARFilteredAssets | ||
| ) |
Call the given callback on all UObjects in memory that pass the given filter. Fills in OutPackageNamesWithAssets with names of all packages tested.
| void UE::AssetRegistry::Utils::EnumerateMemoryAssetsHelper | ( | const FARCompiledFilter & | InFilter, |
| TSet< FName > & | OutPackageNamesWithAssets, | ||
| bool & | bOutStopIteration, | ||
| TFunctionRef< bool(const UObject *Object, FAssetData &&PartialAssetData)> | Callback, | ||
| bool | bSkipARFilteredAssets | ||
| ) |
Helper for EnumerateMemoryAssets* functions. Calls the given callback on all memory assets that pass the portion of the given filter that does not require tags, and passes in an FAssetData constructed from the UObject but missing tags. Fills in OutPackageNamesWithAssets with names of all packages tested.
The portions of the filter that are safe to execute even in the UObject global hash lock in FThreadSafeObjectIterator Returns true if the object passes the filter and should be copied into an array for calling the rest of the filter outside the lock.
| EAssetAvailability::Type UE::AssetRegistry::Utils::GetAssetAvailability | ( | const FAssetData & | AssetData | ) |
Gets the current availability of an asset, primarily for streaming install purposes.
| float UE::AssetRegistry::Utils::GetAssetAvailabilityProgress | ( | const FAssetData & | AssetData, |
| EAssetAvailabilityProgressReportingType::Type | ReportType | ||
| ) |
Gets an ETA or percentage complete for an asset that is still in the process of being installed.
| bool UE::AssetRegistry::Utils::GetAssetAvailabilityProgressTypeSupported | ( | EAssetAvailabilityProgressReportingType::Type | ReportType | ) |
Returns if a given report type is supported on the current platform
| bool UE::AssetRegistry::Utils::HasEngineModuleLoaded | ( | ) |
| void UE::AssetRegistry::Utils::InitializeMountPoints | ( | TOptional< TSet< FString > > & | InOutMountPoints | ) |
If InOutMountPoints is not already set, sets it and reads mount points into it from FPackageName.
| void UE::AssetRegistry::Utils::InitializeSerializationOptionsFromIni | ( | FAssetRegistrySerializationOptions & | Options, |
| Impl::FFilterTagRules * | OutRules, | ||
| const ITargetPlatform * | TargetPlatform = nullptr, |
||
| ESerializationTarget | Target = ESerializationTarget::ForGame, |
||
| bool | bSuppressWarnings = false |
||
| ) |
This will always read the ini, public version may return cache. if OutRules is nullptr, no tags will be filtered.
| bool UE::AssetRegistry::Utils::IsFilterValid | ( | const FARCompiledFilter & | Filter | ) |
Report whether the external-code-created filter is in a state that is safe to use in filtering
| bool UE::AssetRegistry::Utils::IsPathMounted | ( | const FString & | Path, |
| const TSet< FString > & | MountPointsNoTrailingSlashes, | ||
| FString & | StringBuffer | ||
| ) |
Returns true if path belongs to one of the mount points provided
| Path | Path to check if mounted, example "/MyPlugin/SomeAsset" |
| MountPointsNoTrailingSlashes | Mount points without the trailing slash. Example: "/MyPlugin" |
| StringBuffer | String buffer to avoid re-allocation performance hit when searching TSet |
| TMap< FName, Impl::FParsedFilterTagRules > UE::AssetRegistry::Utils::ParseFilterTags | ( | const TArray< FString > & | FilterListItems, |
| bool | bIsFilteringDevelopmentAR, | ||
| bool | bUseAllowListInsteadOfDenyList | ||
| ) |
Parses the list of CookedTagsBlacklist or CookedTagsWhitelist gathered from the INI. Returns a mapping from a tag to a list of rules. May contain unresolved rules.
| void UE::AssetRegistry::Utils::PrioritizeAssetInstall | ( | const FAssetData & | AssetData | ) |
Hint the streaming installers to prioritize a specific asset for install.
| bool UE::AssetRegistry::Utils::ReadAssetFile | ( | FPackageReader & | PackageReader, |
| IAssetRegistry::FLoadPackageRegistryData & | InOutData | ||
| ) |
Reads Asset file from a previously initialized package reader
| PackageReader | Previously initialized package reader that maps to the data to be read |
| AssetDataList | List of the read asset data |
| TMap< FTopLevelAssetPath, TSet< FName > > UE::AssetRegistry::Utils::ResolveFilterTags | ( | Impl::FFilterTagRules & | InOutRules, |
| bool | bSuppressWarnings | ||
| ) |
Resolves and expands the list of rules to list of all derived loaded classes that satisfy those rules. Then transposes rules to a map with a class as a key and a list of tags as value.
| void UE::AssetRegistry::Utils::RunAssetsThroughFilter | ( | TArray< FAssetData > & | AssetDataList, |
| const FARCompiledFilter & | Filter, | ||
| const EFilterMode | FilterMode | ||
| ) |
Given an array of asset data, trim the items that fail the filter based on the inclusion/exclusion mode used.
| bool UE::AssetRegistry::Utils::RunAssetThroughFilter | ( | const FAssetData & | AssetData, |
| const FARCompiledFilter & | Filter, | ||
| const EFilterMode | FilterMode | ||
| ) |
Report whether the given AssetData passes/fails the given filter
| bool UE::AssetRegistry::Utils::RunAssetThroughFilter_Unchecked | ( | const FAssetData & | AssetData, |
| const FARCompiledFilter & | Filter, | ||
| const bool | bPassFilterValue | ||
| ) |
Helper for RunAssetThroughFilter and RunAssetsThroughFilter that skips validity check
| void UE::AssetRegistry::Utils::UpdateSerializationOptions | ( | FAssetRegistrySerializationOptions & | InOutOptions, |
| Impl::FFilterTagRules & | InOutFilterRules, | ||
| bool | bSuppressWarnings | ||
| ) |
Updates FAssetRegistrySerializationOptions filters with the information based on runtime classes. Options are parsed based on class name and need to be resolved using the class hierarchy, and since the class hierarchy can change during startup we may need to reexecute the resolve.