AUsdStageActor::GetGeneratedComponent

Gets the transient component that was generated for a prim with a given prim path.

Choose your operating system:

Windows

macOS

Linux

References

Module

USDStage

Header

/Engine/Plugins/Importers/USDImporter/Source/USDStage/Public/USDStageActor.h

Include

#include "USDStageActor.h"

Source

/Engine/Plugins/Importers/USDImporter/Source/USDStage/Private/USDStageActor.cpp

Syntax

UFUNCTION(BlueprintCallable, Category="USD", Meta=(CallInEditor="true"))
USceneComponent * GetGeneratedComponent
(
    const FString & PrimPath
)

Remarks

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)

Returns

The corresponding spawned component. It may correspond to a parent prim, if the prim at PrimPath was collapsed. Nullptr if path is invalid.

Parameters

Parameter

Description

PrimPath

Full path to the source prim, e.g. "/root_prim/my_prim"