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

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
 

详细描述

template<typename PropertyType>
struct UE::MovieScene::TSetPropertyValues< PropertyType >

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>>( ... );

成员函数说明

◆ ForEachAllocation() [1/2]

template<typename PropertyType >
void UE::MovieScene::TSetPropertyValues< PropertyType >::ForEachAllocation ( const FEntityAllocation *  Allocation,
TRead< UObject * >  BoundObjectComponents,
FThreeWayAccessor  PropertyBindingComponents,
TRead< PropertyType >  PropertyValueComponents 
)
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>>(...);

◆ ForEachAllocation() [2/2]

template<typename PropertyType >
void UE::MovieScene::TSetPropertyValues< PropertyType >::ForEachAllocation ( const FEntityAllocation *  Allocation,
TRead< UObject * >  BoundObjectComponents,
FTwoWayAccessor  PropertyBindingComponents,
TRead< PropertyType >  PropertyValueComponents 
)
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>>(...);

◆ ForEachEntity() [1/3]

template<typename PropertyType >
void UE::MovieScene::TSetPropertyValues< PropertyType >::ForEachEntity ( UObject *  InObject,
FCustomPropertyIndex  CustomIndex,
ParamType  ValueToSet 
)
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>>(...);

◆ ForEachEntity() [2/3]

template<typename PropertyType >
void UE::MovieScene::TSetPropertyValues< PropertyType >::ForEachEntity ( UObject *  InObject,
TSharedPtr< FTrackInstancePropertyBindings >  PropertyBindings,
ParamType  ValueToSet 
)
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>>(...);

◆ ForEachEntity() [3/3]

template<typename PropertyType >
void UE::MovieScene::TSetPropertyValues< PropertyType >::ForEachEntity ( UObject *  InObject,
uint16  PropertyOffset,
ParamType  ValueToSet 
)
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>>(...);

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