/Engine/Source/Runtime/InteractiveToolsFramework/Public/ToolTargetManager.h
Looks through the currently selected components and actors and counts the number of inputs that could be used to create qualifying tool targets with an additional test predicate.
virtual int32 CountSelectedAndTargetableWithPredicate ( const [FToolBuilderState](API\Runtime\InteractiveToolsFramework\FToolBuilderState) & SceneState, const [FToolTargetTypeRequirements](API\Runtime\InteractiveToolsFramework\ToolTargets\FToolTargetTypeRequirements) & TargetRequirements, [TFunctionRef](API\Runtime\Core\GenericPlatform\TFunctionRef)< bool([UActorComponent](API\Runtime\Engine\Components\UActorComponent) &)> ComponentPred ) const