Navigation
API > API/Plugins > API/Plugins/USDClasses
References
| Module | USDClasses |
| Header | /Engine/Plugins/Importers/USDImporter/Source/USDClasses/Public/USDAssetCache2.h |
| Include | #include "USDAssetCache2.h" |
Syntax
struct FUsdScopedAssetCacheReferencer
Remarks
The UUsdAssetCache2 can track all the UObjects that are referencing assets, so that it knows when to discard an unreferenced asset.
This struct lets you specify a single UObject that will be automatically used as the referencer for the given asset cache for the duration of the scope.
Usage: FUsdScopedAssetCacheReferencer ScopedReferencer{ StageActor->UsdAssetCache, StageActor }; StageActor->SetRootLayer(MyRootLayer); // Adds assets to the cache
Constructors
| Type | Name | Description | |
|---|---|---|---|
FUsdScopedAssetCacheReferencer
(
UUsdAssetCache2* InAssetCache, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Operators
| Type | Name | Description | |
|---|---|---|---|
| FUsdScopedAssetCacheReferencer & | operator=
(
const FUsdScopedAssetCacheReferencer& |
||
| FUsdScopedAssetCacheReferencer & |