UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ComponentSourceInterfaces.cpp File Reference
#include "ComponentSourceInterfaces.h"
#include "Components/PrimitiveComponent.h"
#include "Containers/Array.h"
#include "TargetInterfaces/MaterialProvider.h"

Functions

int32 AddComponentTargetFactory (TUniquePtr< FComponentTargetFactory > Factory)
 
FComponentTargetFactoryFindComponentTargetFactoryByKey (int32 Key)
 
bool RemoveComponentTargetFactoryByKey (int32 Key)
 
void RemoveAllComponentTargetFactoryies ()
 
bool CanMakeComponentTarget (UActorComponent *Component)
 
TUniquePtr< FPrimitiveComponentTargetMakeComponentTarget (UPrimitiveComponent *Component)
 

Function Documentation

◆ AddComponentTargetFactory()

int32 AddComponentTargetFactory ( TUniquePtr< FComponentTargetFactory Factory)

Add a factory method to make ComponentTarget from UPrimitiveComponent*

Parameters
FactoryThe ComponentTargetFactory
Returns
integer indentifier that identifies this Factory

◆ CanMakeComponentTarget()

bool CanMakeComponentTarget ( UActorComponent Component)

Determine whether a TargetComponent can be created for the given Component

Parameters
ComponentA UObject that we would like to use as tool target.
Returns
bool signifying whether or not a ComponentTarget can be built

◆ FindComponentTargetFactoryByKey()

FComponentTargetFactory * FindComponentTargetFactoryByKey ( int32  Key)
Returns
ComponentTargetFactory associated with the given Key, or nullptr if not found

◆ MakeComponentTarget()

TUniquePtr< FPrimitiveComponentTarget > MakeComponentTarget ( UPrimitiveComponent *  Component)

Create a TargetComponent for the given Component

Parameters
ComponentA UObject that we would like to use as tool target. This must presently descend from UPrimitiveComponent
Returns
An FComponentTarget instance. Must not return null, though the MeshSource and MeshSink in it's MeshBridge may be

◆ RemoveAllComponentTargetFactoryies()

void RemoveAllComponentTargetFactoryies ( )

remove all registered ComponentTargetFactory objects

◆ RemoveComponentTargetFactoryByKey()

bool RemoveComponentTargetFactoryByKey ( int32  Key)
Returns
true if ComponentTargetFactory associated with the given Key was found and removed