Navigation
API > API/Plugins > API/Plugins/USDClasses
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UUsdAssetCache
References
| Module | USDClasses |
| Header | /Engine/Plugins/Importers/USDImporter/Source/USDClasses/Public/USDAssetCache.h |
| Include | #include "USDAssetCache.h" |
Syntax
UCLASS&40;Meta&61;&40;ScriptName&61;"UsdAssetCache_Deprecated"&41;&41;
class UUsdAssetCache : public UObject
Remarks
Owns the assets generated and reused by the USD stage, allowing thread-safe retrieval/storage
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CacheAsset
(
const FString& Hash, |
||
| void | DiscardAsset
(
const FString& Hash |
||
| TSet< UObject * > | Returns assets that aren't marked as stale | ||
| UObject * | GetAssetForPrim
(
const FString& PrimPath |
||
| TMap< FString, TWeakObjectPtr< UObject > > | |||
| UObject * | GetCachedAsset
(
const FString& Hash |
||
| TMap< FString, TObjectPtr< UObject > > | |||
| FString | GetHashForAsset
(
UObject* Asset |
Returns the hash used as a key for an asset, in case we own it. Returns the empty string otherwise. | |
| int32 | GetNumAssets () |
||
| FString | GetPrimForAsset
(
UObject* Asset |
Returns the first prim path associated with an asset (see TMap::FindKey) | |
| bool | IsAssetOwnedByCache
(
UObject* Asset |
||
| void | LinkAssetToPrim
(
const FString& PrimPath, |
||
| void | Every time an asset is retrieved/inserted we add it to ActiveAssets. | ||
| void | RemoveAssetPrimLink
(
const FString& PrimPath |
||
| void | Reset () |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | We need to be serializable so that AUsdStageActor can duplicate us for PIE. |