Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorAssetSubsystem
Description
Find Package Referencers for an asset. Only Soft and Hard dependencies will be looked for. Soft are dependencies which don't need to be loaded for the object to be used. Hard 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 positives can happen until all the assets are loaded and re-saved.
| Name | FindPackageReferencersForAsset |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Subsystems/EditorAssetSubsystem.h |
| Include Path | #include "Subsystems/EditorAssetSubsystem.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Subsystems/EditorAssetSubsystem.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Asset", Meta=(AdvancedDisplay=1))
TArray < FString > FindPackageReferencersForAsset
(
const FString & AssetPath,
bool bLoadAssetsToConfirm
)
The package paths of the referencers.
Parameters
| Name | Remarks |
|---|---|
| AssetPath | Asset Path of the asset that we are looking for. |
| bLoadAssetsToConfirm | Whether the asset and any potential referencers will be loaded to confirm the dependencies. |