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.
更多...
|
| 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 );