UEditorAssetLibrary::FindPackageReferencersForAsset

Find Package Referencers for an asset.

Windows
MacOS
Linux

References

Module

EditorScriptingUtilities

Header

/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorAssetLibrary.h

Include

#include "EditorAssetLibrary.h"

Source

/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorAssetLibrary.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Editor Scripting | Asset")
static TArray< FString > FindPackageReferencersForAsset
(
    const FString & AssetPath,
    bool bLoadAssetsToConfirm
)

Remarks

Find Package Referencers for an asset. Only Soft and Hard dependencies would be looked for. Soft are dependencies which don't need to be loaded for the object to be used. Had are dependencies which are required for correct usage of the source asset and must be loaded at the same time. Other references may exist. The asset may be currently used in memory by another asset, by the editor or by code. Package dependencies are cached with the asset. False positive can happen until all the assets are loaded and re-saved.

Returns

The package path of the referencers.

Parameters

Parameter

Description

AssetPath

Asset Path of the asset that we are looking for (that is not a level).

bLoadAssetsToConfirm

The asset and the referencers will be loaded (if not a level) to confirm the dependencies.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss