Navigation
API > API/Plugins > API/Plugins/USDClasses > API/Plugins/USDClasses/UUsdAssetCache3
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
| Name | FUsdScopedReferencer |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/USDCore/Source/USDClasses/Public/USDAssetCache3.h |
| Include Path | #include "USDAssetCache3.h" |
Syntax
struct FUsdScopedReferencer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| USDAssetCache3.h | |||
FUsdScopedReferencer
(
const FUsdScopedReferencer& |
USDAssetCache3.h | ||
| USDAssetCache3.h | |||
FUsdScopedReferencer
(
UUsdAssetCache3* InAssetCache, |
USDAssetCache3.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FUsdScopedReferencer() |
USDAssetCache3.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AssetCache | TWeakObjectPtr< UUsdAssetCache3 > | USDAssetCache3.h | ||
| OldReferencer | const UObject * | USDAssetCache3.h |
Functions
Public
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FUsdScopedReferencer & operator=
(
const FUsdScopedReferencer& |
USDAssetCache3.h | ||
| USDAssetCache3.h |