Navigation
API > API/Plugins > API/Plugins/USDClasses > API/Plugins/USDClasses/UUsdAssetCache2
References
| Module | USDClasses |
| Header | /Engine/Plugins/Importers/USDImporter/Source/USDClasses/Public/USDAssetCache2.h |
| Include | #include "USDAssetCache2.h" |
| Source | /Engine/Plugins/Importers/USDImporter/Source/USDClasses/Private/USDAssetCache2.cpp |
UFUNCTION&40;BlueprintCallable, Category&61;"Caching", Meta&61;&40;CallInEditor&61;"true"&41;&41;
bool AddAssetReference
&40;
const UObject &42; Asset,
const UObject &42; Referencer
&41;
Remarks
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.