Navigation
API > API/Plugins > API/Plugins/DisplayCluster
Description
Return the same component (by class and name) from a DCRA of the specified type. If no other component exists, or if the current DCRA type matches the requested one, the input component is returned.
| Name | UE::DisplayClusterViewportHelpers::GetMatchingComponentFromRootActor |
| Type | function |
| Header File | /Engine/Plugins/Runtime/nDisplay/Source/DisplayCluster/Public/Render/Viewport/Misc/DisplayClusterViewportHelpers.h |
| Include Path | #include "Render/Viewport/Misc/DisplayClusterViewportHelpers.h" |
namespace UE
{
namespace DisplayClusterViewportHelpers
{
template<class TComp>
const TComp & UE::DisplayClusterViewportHelpers::GetMatchingComponentFromRootActor
(
const IDisplayClusterViewportConfiguration & InConfiguration,
const EDisplayClusterRootActorType InRootActorType,
const TComp & InComponent
)
}
}
A component with the same name and class belonging to a DCRA of this type.
Parameters
| Name | Remarks |
|---|---|
| InRootActorType | the search is performed within the DCRA of the given type. |
| InComponent | The component that is used for the search. |