Navigation
API > API/Plugins > API/Plugins/USDClasses > API/Plugins/USDClasses/UUsdAssetCache2
Description
Adds a new UObject referencer to a particular asset, returning true if the operation succeeded.
Assets will not be evicted or removed from the cache while the referencer is registered. Note that internally the cache keeps FObjectKey structs constructed from the referencers, instead of direct pointers to them.
| Name | AddAssetReference |
| Type | function |
| Header File | /Engine/Plugins/Runtime/USDCore/Source/USDClasses/Public/USDAssetCache2.h |
| Include Path | #include "USDAssetCache2.h" |
| Source | /Engine/Plugins/Runtime/USDCore/Source/USDClasses/Private/USDAssetCache2.cpp |
UFUNCTION (BlueprintCallable, Category="Caching", Meta=(CallInEditor="true"))
bool AddAssetReference
(
const UObject * Asset,
const UObject * Referencer
)