Navigation
API > API/Plugins > API/Plugins/USDClasses > API/Plugins/USDClasses/UUsdAssetCache3 > API/Plugins/USDClasses/UUsdAssetCache3/GetCachedAsset
References
| Module | USDClasses |
| Header | /Engine/Plugins/Runtime/USDCore/Source/USDClasses/Public/USDAssetCache3.h |
| Include | #include "USDAssetCache3.h" |
| Source | /Engine/Plugins/Runtime/USDCore/Source/USDClasses/Private/USDAssetCache3.cpp |
UFUNCTION (BlueprintCallable, Category="USD", Meta=(CallInEditor="true"))
UObject * GetCachedAsset
(
const FString & Hash
) const
Remarks
Returns the asset associated with a particular Hash, if any. Returns nullptr if there isn't any associated path to this Hash, or if the associated path doesn't resolve to an asset.
WARNING: As this may try loading a package from disk, this can only be called from the game thread!