engine
 
载入中...
搜索中...
未找到
函数
ToolBuilderUtil 命名空间参考

Helper functions that can be used in InteractiveToolBuilder implementations 更多...

函数

INTERACTIVETOOLSFRAMEWORK_API int32 CountActors (const FToolBuilderState &InputState, const TFunction< bool(AActor *)> &Predicate)
 Count number of selected Actors that pass predicate.
 
INTERACTIVETOOLSFRAMEWORK_API int CountComponents (const FToolBuilderState &InputState, const TFunction< bool(UActorComponent *)> &Predicate)
 Count number of selected components that pass predicate. 更多...
 
template<typename ActorType >
int CountSelectedActorsOfType (const FToolBuilderState &InputState)
 Count number of selected Actors of given type.
 
template<typename ComponentType >
int CountSelectedComponentsOfType (const FToolBuilderState &InputState)
 Count number of components of given type. 更多...
 
INTERACTIVETOOLSFRAMEWORK_API TArray< AActor * > FindAllActors (const FToolBuilderState &InputState, const TFunction< bool(AActor *)> &Predicate)
 First all Actors that pass predicate. 更多...
 
INTERACTIVETOOLSFRAMEWORK_API TArray< UActorComponent * > FindAllComponents (const FToolBuilderState &InputState, const TFunction< bool(UActorComponent *)> &Predicate)
 First all components that passes predicate. 更多...
 
INTERACTIVETOOLSFRAMEWORK_API AActor * FindFirstActor (const FToolBuilderState &InputState, const TFunction< bool(AActor *)> &Predicate)
 First first available Actor that passes predicate. 更多...
 
template<typename ActorType >
ActorType * FindFirstActorOfType (const FToolBuilderState &InputState)
 Find first first available Actor of given type, or return nullptr if not found
 
INTERACTIVETOOLSFRAMEWORK_API UActorComponent * FindFirstComponent (const FToolBuilderState &InputState, const TFunction< bool(UActorComponent *)> &Predicate)
 First first available component that passes predicate. 更多...
 
template<typename ComponentType >
ComponentType * FindFirstComponentOfType (const FToolBuilderState &InputState)
 First first available component of given type. 更多...
 

详细描述

Helper functions that can be used in InteractiveToolBuilder implementations

函数说明

◆ CountComponents()

INTERACTIVETOOLSFRAMEWORK_API 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

◆ CountSelectedComponentsOfType()

template<typename ComponentType >
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

◆ FindAllActors()

INTERACTIVETOOLSFRAMEWORK_API TArray< AActor * > ToolBuilderUtil::FindAllActors ( const FToolBuilderState &  InputState,
const TFunction< bool(AActor *)> &  Predicate 
)

First all Actors that pass predicate.

Searches Actors selection list.

◆ FindAllComponents()

INTERACTIVETOOLSFRAMEWORK_API 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

◆ FindFirstActor()

INTERACTIVETOOLSFRAMEWORK_API AActor * ToolBuilderUtil::FindFirstActor ( const FToolBuilderState &  InputState,
const TFunction< bool(AActor *)> &  Predicate 
)

First first available Actor that passes predicate.

Searches Actors selection list.

◆ FindFirstComponent()

INTERACTIVETOOLSFRAMEWORK_API 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

◆ FindFirstComponentOfType()

template<typename ComponentType >
ComponentType * ToolBuilderUtil::FindFirstComponentOfType ( const FToolBuilderState &  InputState)

First first available component of given type.

Searches Components selection list first, then all Actors