Navigation
API > API/Plugins > API/Plugins/USDStage > API/Plugins/USDStage/AUsdStageActor
Description
Gets the transient component that was generated for a prim with a given prim path. Warning: The lifetime of the component is managed by the AUsdStageActor, and it may be force-destroyed at any time (e.g. when closing the stage)
| Name | GetGeneratedComponent |
| Type | function |
| Header File | /Engine/Plugins/Importers/USDImporter/Source/USDStage/Public/USDStageActor.h |
| Include Path | #include "USDStageActor.h" |
| Source | /Engine/Plugins/Importers/USDImporter/Source/USDStage/Private/USDStageActor.cpp |
UFUNCTION (BlueprintCallable, Category="USD", Meta=(CallInEditor="true"))
USceneComponent * GetGeneratedComponent
(
const FString & PrimPath
) const
The corresponding spawned component. It may correspond to a parent prim, if the prim at PrimPath was collapsed. Nullptr if path is invalid.
Parameters
| Name | Remarks |
|---|---|
| PrimPath | Full path to the source prim, e.g. "/root_prim/my_prim" |