engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
UE::MovieScene::TSetCompositePropertyValuesImpl< TIntegerSequence< int, Indices... >, PropertyType, ProjectionType, CompositeTypes... > 模板结构体 参考

Task implementation that combines a specific set of input components (templated as CompositeTypes) through a projection, and applies the result to an object property Three types of property are supported: Custom native accessor functions, fast pointer offset, or FTrackInstancePropertyBindings. 更多...

#include <MovieScenePropertySystemTypes.h>

Public 成员函数

void ForEachAllocation (const FEntityAllocation *Allocation, TRead< UObject * > BoundObjectComponents, FThreeWayAccessor PropertyBindingComponents, TRead< CompositeTypes >... VariadicComponents)
 Task callback that applies properties for a whole allocation of entities with either an FCustomPropertyIndex, uint16 or TSharedPtr<FTrackInstancePropertyBindings> property component Must be invoked with a task builder with the specified parameters: 更多...
 
void ForEachAllocation (const FEntityAllocation *Allocation, TRead< UObject * > BoundObjectComponents, FTwoWayAccessor PropertyBindingComponents, TRead< CompositeTypes >... VariadicComponents)
 Task callback that applies properties for a whole allocation of entities with either a uint16 or TSharedPtr<FTrackInstancePropertyBindings> property component Must be invoked with a task builder with the specified parameters: 更多...
 
void ForEachEntity (UObject *InObject, FCustomPropertyIndex CustomPropertyIndex, typename TCallTraits< CompositeTypes >::ParamType... CompositeResults)
 Task callback that applies a value to an object property via a custom native setter function Must be invoked with a task builder with the specified parameters: 更多...
 
void ForEachEntity (UObject *InObject, TSharedPtr< FTrackInstancePropertyBindings > PropertyBindings, typename TCallTraits< CompositeTypes >::ParamType... CompositeResults)
 Task callback that applies a value to an object property via a slow (legacy) track instance binding Must be invoked with a task builder with the specified parameters: 更多...
 
void ForEachEntity (UObject *InObject, uint16 PropertyOffset, typename TCallTraits< CompositeTypes >::ParamType... CompositeResults)
 Task callback that applies a value to an object property via a fast pointer offset Must be invoked with a task builder with the specified parameters: 更多...
 
void PreTask ()
 Run before this task executes any logic over entities and components
 

详细描述

template<typename PropertyType, typename ProjectionType, typename... CompositeTypes, int... Indices>
struct UE::MovieScene::TSetCompositePropertyValuesImpl< TIntegerSequence< int, Indices... >, PropertyType, ProjectionType, CompositeTypes... >

Task implementation that combines a specific set of input components (templated as CompositeTypes) through a projection, and applies the result to an object property Three types of property are supported: Custom native accessor functions, fast pointer offset, or FTrackInstancePropertyBindings.

Can be invoked in one of 2 ways: either with a specific property type and input components through a per-entity iteration:

TComponentTypeID<FCustomPropertyIndex> CustomProperty = ...;
TComponentTypeID<UObject*> BoundObject = ...;

FEntityTaskBuilder()
.Read( BoundObject )
.Read( CustomProperty )
.Read( TComponentTypeID<float>(...) )
.Read( TComponentTypeID<float>(...) )
.Read( TComponentTypeID<float>(...) )
.Dispatch_PerEntity<TSetCompositePropertyValues<FVector, float, float, float>>( ..., &UKismetMathLibrary::MakeVector );

Or via a combinatorial task that iterates all entities with any one of the property components:

TComponentTypeID<uint16> FastPropertyOffset = ...;
TComponentTypeID<TSharedPtr<FTrackInstancePropertyBindings>> SlowProperty = ...;

FEntityTaskBuilder()
.Read(      BoundObject )
.ReadOneOf( CustomProperty, FastPropertyOffset, SlowProperty )
.Read(      TComponentTypeID<float>(...) )
.Read(      TComponentTypeID<float>(...) )
.Read(      TComponentTypeID<float>(...) )
.Dispatch_Perllocation<TSetCompositePropertyValues<FVector, float, float, float>>( ..., &UKismetMathLibrary::MakeVector );

成员函数说明

◆ ForEachAllocation() [1/2]

template<typename PropertyType , typename ProjectionType , typename... CompositeTypes, int... Indices>
void UE::MovieScene::TSetCompositePropertyValuesImpl< TIntegerSequence< int, Indices... >, PropertyType, ProjectionType, CompositeTypes... >::ForEachAllocation ( const FEntityAllocation *  Allocation,
TRead< UObject * >  BoundObjectComponents,
FThreeWayAccessor  PropertyBindingComponents,
TRead< CompositeTypes >...  VariadicComponents 
)
inline

Task callback that applies properties for a whole allocation of entities with either an FCustomPropertyIndex, uint16 or TSharedPtr<FTrackInstancePropertyBindings> property component Must be invoked with a task builder with the specified parameters:

FEntityTaskBuilder()
.Read(      TComponentTypeID<UObject*>(...) )
.ReadOneOf( TComponentTypeID<FCustomPropertyIndex>(...), TComponentTypeID<uint16>(...), TComponentTypeID<TSharedPtr<FTrackInstancePropertyBindings>>(...) )
.Read( TComponentTypeID<CompositeType[0  ]>(...) )
.Read( TComponentTypeID<CompositeType[...]>(...) )
.Read( TComponentTypeID<CompositeType[N-1]>(...) )
.Dispatch_PerAllocation<TSetCompositePropertyValues<PropertyType, CompositeTypes...>>(...);

◆ ForEachAllocation() [2/2]

template<typename PropertyType , typename ProjectionType , typename... CompositeTypes, int... Indices>
void UE::MovieScene::TSetCompositePropertyValuesImpl< TIntegerSequence< int, Indices... >, PropertyType, ProjectionType, CompositeTypes... >::ForEachAllocation ( const FEntityAllocation *  Allocation,
TRead< UObject * >  BoundObjectComponents,
FTwoWayAccessor  PropertyBindingComponents,
TRead< CompositeTypes >...  VariadicComponents 
)
inline

Task callback that applies properties for a whole allocation of entities with either a uint16 or TSharedPtr<FTrackInstancePropertyBindings> property component Must be invoked with a task builder with the specified parameters:

FEntityTaskBuilder()
.Read(      TComponentTypeID<UObject*>(...) )
.ReadOneOf( TComponentTypeID<uint16>(...), TComponentTypeID<TSharedPtr<FTrackInstancePropertyBindings>>(...) )
.Read( TComponentTypeID<CompositeType[0  ]>(...) )
.Read( TComponentTypeID<CompositeType[...]>(...) )
.Read( TComponentTypeID<CompositeType[N-1]>(...) )
.Dispatch_PerAllocation<TSetCompositePropertyValues<PropertyType, CompositeTypes...>>(...);

◆ ForEachEntity() [1/3]

template<typename PropertyType , typename ProjectionType , typename... CompositeTypes, int... Indices>
void UE::MovieScene::TSetCompositePropertyValuesImpl< TIntegerSequence< int, Indices... >, PropertyType, ProjectionType, CompositeTypes... >::ForEachEntity ( UObject *  InObject,
FCustomPropertyIndex  CustomPropertyIndex,
typename TCallTraits< CompositeTypes >::ParamType...  CompositeResults 
)
inline

Task callback that applies a value to an object property via a custom native setter function Must be invoked with a task builder with the specified parameters:

FEntityTaskBuilder()
.Read( TComponentTypeID<UObject*>(...) )
.Read( TComponentTypeID<FCustomPropertyIndex>(...) )
.Read( TComponentTypeID<CompositeType[0  ]>(...) )
.Read( TComponentTypeID<CompositeType[...]>(...) )
.Read( TComponentTypeID<CompositeType[N-1]>(...) )
.Dispatch_PerEntity<TSetCompositePropertyValues<PropertyType, CompositeTypes...>>(..., Projection);

◆ ForEachEntity() [2/3]

template<typename PropertyType , typename ProjectionType , typename... CompositeTypes, int... Indices>
void UE::MovieScene::TSetCompositePropertyValuesImpl< TIntegerSequence< int, Indices... >, PropertyType, ProjectionType, CompositeTypes... >::ForEachEntity ( UObject *  InObject,
TSharedPtr< FTrackInstancePropertyBindings >  PropertyBindings,
typename TCallTraits< CompositeTypes >::ParamType...  CompositeResults 
)
inline

Task callback that applies a value to an object property via a slow (legacy) track instance binding Must be invoked with a task builder with the specified parameters:

FEntityTaskBuilder()
.Read( TComponentTypeID<UObject*>(...) )
.Read( TComponentTypeID<TSharedPtr<FTrackInstancePropertyBindings>>(...) )
.Read( TComponentTypeID<CompositeType[0  ]>(...) )
.Read( TComponentTypeID<CompositeType[...]>(...) )
.Read( TComponentTypeID<CompositeType[N-1]>(...) )
.Dispatch_PerEntity<TSetCompositePropertyValues<PropertyType, CompositeTypes...>>(...);

◆ ForEachEntity() [3/3]

template<typename PropertyType , typename ProjectionType , typename... CompositeTypes, int... Indices>
void UE::MovieScene::TSetCompositePropertyValuesImpl< TIntegerSequence< int, Indices... >, PropertyType, ProjectionType, CompositeTypes... >::ForEachEntity ( UObject *  InObject,
uint16  PropertyOffset,
typename TCallTraits< CompositeTypes >::ParamType...  CompositeResults 
)
inline

Task callback that applies a value to an object property via a fast pointer offset Must be invoked with a task builder with the specified parameters:

FEntityTaskBuilder()
.Read( TComponentTypeID<UObject*>(...) )
.Read( TComponentTypeID<uint16>(...) )
.Read( TComponentTypeID<CompositeType[0  ]>(...) )
.Read( TComponentTypeID<CompositeType[...]>(...) )
.Read( TComponentTypeID<CompositeType[N-1]>(...) )
.Dispatch_PerEntity<TSetCompositePropertyValues<PropertyType, CompositeTypes...>>(...);

该结构体的文档由以下文件生成: