Navigation
API > API/Plugins > API/Plugins/USDClasses > API/Plugins/USDClasses/UUsdAssetCache3
References
| Module | USDClasses |
| Header | /Engine/Plugins/Runtime/USDCore/Source/USDClasses/Public/USDAssetCache3.h |
| Include | #include "USDAssetCache3.h" |
Syntax
struct FUsdScopedReferencer
Remarks
The UUsdAssetCache3 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: FUsdScopedReferencer ScopedReferencer{ StageActor->UsdAssetCache, StageActor }; StageActor->SetRootLayer(MyRootLayer); // Adds assets to the cache
Constructors
| Type | Name | Description | |
|---|---|---|---|
FUsdScopedReferencer
(
const FUsdScopedReferencer& |
|||
FUsdScopedReferencer
(
UUsdAssetCache3* InAssetCache, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Operators
| Type | Name | Description | |
|---|---|---|---|
| FUsdScopedReferencer & | operator=
(
const FUsdScopedReferencer& |
||
| FUsdScopedReferencer & |