IAssetRegistry::GetReferencers

Gets a list of PackageNames that reference the supplied package. (On disk references ONLY)

Windows
MacOS
Linux

References

Module

AssetRegistry

Header

/Engine/Source/Runtime/AssetRegistry/Public/AssetRegistry/IAssetRegistry.h

Include

#include "AssetRegistry/IAssetRegistry.h"

Syntax

bool GetReferencers
(
    FName PackageName,
    TArray < FName > & OutReferencers,
    UE::AssetRegistry::EDependencyCategory Category,
    const UE::AssetRegistry::FDependencyQuery & Flags
) const

Remarks

Gets a list of PackageNames that reference the supplied package. (On disk references ONLY)

Parameters

Parameter

Description

PackageName

the name of the package for which to gather dependencies (eg, /Game/MyFolder/MyAsset)

OutReferencers

a list of packages that reference the package whose path is PackageName

Category

which category(ies) of referencers to include in the output list. Referencers that have a dependency matching ANY of the OR'd categories will be returned.

Flags

which flags are required present or not present on the referencer's dependency. Referencers that have a dependency matching ALL required and NONE excluded bits will be returned. For each potentially returned dependency, flags not applicable to their category are ignored.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback