Navigation
API > API/Plugins > API/Plugins/USDPregenInterchange
Pregen-aware USD context that overrides asset node UID generation to produce stable, target-remapped UIDs. This causes all instances of the same pregen target to converge to the same node UID, achieving deduplication.
Set as the USD context on SourceData (via the standard "USD" tag) in place of the base UInterchangeUsdContext.
| Name | UUSDPregenContext |
| Type | class |
| Header File | /Engine/Plugins/Experimental/USDPregen/Source/USDPregenInterchange/Public/USDPregenContext.h |
| Include Path | #include "USDPregenContext.h" |
Syntax
UCLASS ()
class UUSDPregenContext : public UInterchangeUsdContext
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UInterchangeUsdContext → UUSDPregenContext
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AllowedTargetUid | FString | When non-empty, only prims whose owning pregen target's UID string matches this value are processed by the pipeline / accumulated into manifests. | USDPregenContext.h | |
| SceneDiscovery | TSharedPtr< UE::UsdPregen::FSceneDiscovery > | SceneDiscovery instance, needed for GetTargetData() lookups. | USDPregenContext.h | |
| SceneDiscoveryResults | UE::UsdPregen::FSceneDiscovery::ResultMap | Map of prim path -> target UIDs from the discovery/traversal phase. | USDPregenContext.h | |
| Storage | UE::UsdPregen::FStoragePlugin | Storage plugin used for GetPackageSubPathForUAsset. | USDPregenContext.h |