Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/UToolTargetFactory
Description
The following methods are used when building from multiple input objects. If not overriden, they will call BuildTarget/CanBuildTarget on each object in sequence, but they can be overriden to create combined tool targets out of multiple inputs. Called to see if a factory could make one or more targets out of the given array of input objects, if multiple are provided.
| Name | CanBuildTargets |
| Type | function |
| Header File | /Engine/Source/Runtime/InteractiveToolsFramework/Public/ToolTargets/ToolTarget.h |
| Include Path | #include "ToolTargets/ToolTarget.h" |
| Source | /Engine/Source/Runtime/InteractiveToolsFramework/Private/ToolTargets/ToolTarget.cpp |
virtual int32 CanBuildTargets
(
const TArray < UObject * > & InputObjects,
const FToolTargetTypeRequirements & TargetTypeInfo,
TArray < bool > & WouldBeUsedOut
)
Number of targets that would be returned by the equivalent BuildTargets call.
Parameters
| Name | Remarks |
|---|---|
| WouldBeUsedOut | Set to be 1:1 with InputObjects, with each entry set to true if that input object would be used in the creation of a tool target |