![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Helper functions that can be used in InteractiveToolBuilder implementations
| bool ToolBuilderUtil::ComponentTypeCouldHaveUVs | ( | const UActorComponent & | Component | ) |
Determine if component support UVs.
| int32 ToolBuilderUtil::CountActors | ( | const FToolBuilderState & | InputState, |
| const TFunction< bool(AActor *)> & | Predicate | ||
| ) |
Count number of selected Actors that pass predicate.
| int ToolBuilderUtil::CountComponents | ( | const FToolBuilderState & | InputState, |
| const TFunction< bool(UActorComponent *)> & | Predicate | ||
| ) |
Count number of selected components that pass predicate. If Component selection is not empty, returns that count, otherwise counts in all selected Actors
| int ToolBuilderUtil::CountSelectedActorsOfType | ( | const FToolBuilderState & | InputState | ) |
Count number of selected Actors of given type.
| int ToolBuilderUtil::CountSelectedComponentsOfType | ( | const FToolBuilderState & | InputState | ) |
Count number of components of given type. If Component selection is not empty, returns that count, otherwise counts in all selected Actors
| void ToolBuilderUtil::EnumerateComponents | ( | const FToolBuilderState & | InputState, |
| TFunctionRef< void(UActorComponent *)> | ComponentFunc | ||
| ) |
| TArray< AActor * > ToolBuilderUtil::FindAllActors | ( | const FToolBuilderState & | InputState, |
| const TFunction< bool(AActor *)> & | Predicate | ||
| ) |
First all Actors that pass predicate. Searches Actors selection list.
| TArray< UActorComponent * > ToolBuilderUtil::FindAllComponents | ( | const FToolBuilderState & | InputState, |
| const TFunction< bool(UActorComponent *)> & | Predicate | ||
| ) |
First all components that passes predicate. Searches Components selection list first, then all Actors
| AActor * ToolBuilderUtil::FindFirstActor | ( | const FToolBuilderState & | InputState, |
| const TFunction< bool(AActor *)> & | Predicate | ||
| ) |
First first available Actor that passes predicate. Searches Actors selection list.
| ActorType * ToolBuilderUtil::FindFirstActorOfType | ( | const FToolBuilderState & | InputState | ) |
Find first first available Actor of given type, or return nullptr if not found
| UActorComponent * ToolBuilderUtil::FindFirstComponent | ( | const FToolBuilderState & | InputState, |
| const TFunction< bool(UActorComponent *)> & | Predicate | ||
| ) |
First first available component that passes predicate. Searches Components selection list first, then all Actors
| ComponentType * ToolBuilderUtil::FindFirstComponentOfType | ( | const FToolBuilderState & | InputState | ) |
First first available component of given type. Searches Components selection list first, then all Actors
| bool ToolBuilderUtil::IsVolume | ( | const UActorComponent & | Component | ) |
Determine if component is a volume or not.