Stateless entity task that will apply values to properties. 更多...
#include <MovieScenePropertySystemTypes.h>
Public 成员函数 | |
| void | ForEachAllocation (const FEntityAllocation *Allocation, TRead< UObject * > BoundObjectComponents, FThreeWayAccessor PropertyBindingComponents, TRead< PropertyType > PropertyValueComponents) |
| 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< PropertyType > PropertyValueComponents) |
| 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 CustomIndex, ParamType ValueToSet) |
| 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, ParamType ValueToSet) |
| 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, ParamType ValueToSet) |
| 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 | |
Stateless entity task that will apply values to properties.
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 through a per-entity iteration:
TComponentTypeID<FCustomPropertyIndex> CustomProperty = ...; TComponentTypeID<FTransform> TransformComponent = ...; TComponentTypeID<UObject*> BoundObject = ...; FEntityTaskBuilder() .Read(BoundObject) .Read(CustomProperty) .Read(TransformComponent) .Dispatch_PerEntity<TSetPropertyValues<FTransform>>( ... );
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, FastProperty, SlowProperty) .Read(TransformComponent) .Dispatch_PerAllocation<TSetPropertyValues<FTransform>>( ... );
|
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<PropertyType>(...) ) .Dispatch_PerAllocation<TSetPropertyValues<PropertyType>>(...);
|
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<PropertyType>(...) ) .Dispatch_PerAllocation<TSetPropertyValues<PropertyType>>(...);
|
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<PropertyType>(...) ) .Dispatch_PerEntity<TSetPropertyValues<PropertyType>>(...);
|
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<PropertyType>(...) ) .Dispatch_PerEntity<TSetPropertyValues<PropertyType>>(...);
|
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<PropertyType>(...) ) .Dispatch_PerEntity<TSetPropertyValues<PropertyType>>(...);