Navigation
API > API/Runtime > API/Runtime/AssetRegistry > API/Runtime/AssetRegistry/IAssetRegistry
Description
Return whether the supplied package references the query package. Only considers dependencies reported in the on-disk package.
| Name | ContainsDependency |
| Type | function |
| Header File | /Engine/Source/Runtime/AssetRegistry/Public/AssetRegistry/IAssetRegistry.h |
| Include Path | #include "AssetRegistry/IAssetRegistry.h" |
bool ContainsDependency
(
FName PackageName,
FName QueryDependencyName,
UE::AssetRegistry::EDependencyCategory Category,
const UE::AssetRegistry::FDependencyQuery & Flags
) const
Parameters
| Name | Remarks |
|---|---|
| PackageName | The name of the package for which to inspect dependencies (eg, /Game/MyFolder/MyAsset) |
| QueryDependencyName | Which package to look for in PackageName's dependencies |
| Category | Which category(ies) of dependencies to look in for QueryDependencyName. Dependencies matching ANY of the OR'd categories will be considered. |
| Flags | Which flags are required present or not present on the dependencies. Dependencies matching ALL required and NONE excluded bits will be considered. For each potentially considered dependency, flags not applicable to their category are ignored. |