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

Stateless entity task that writes current property values to the specified intermediate component. 更多...

#include <MovieScenePropertySystemTypes.h>

Public 成员函数

void ForEachAllocation (const FEntityAllocation *Allocation, TRead< UObject * > BoundObjectComponents, FThreeWayAccessor PropertyBindingComponents, TWrite< OperationalType > OutValueComponents)
 Task callback that writes current property values for objects into an output component 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, TWrite< OperationalType > OutValueComponents)
 Task callback that writes current property values for objects into an output component 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, OperationalType &OutValue)
 Task callback that retrieves the object's current value via a custom native setter function, and writes it to the specified output variable Must be invoked with a task builder with the specified parameters: 更多...
 
void ForEachEntity (UObject *InObject, TSharedPtr< FTrackInstancePropertyBindings > PropertyBindings, OperationalType &OutValue)
 Task callback that retrieves the object's current value via a slow (legacy) track instance binding, and writes it to the specified output variable Must be invoked with a task builder with the specified parameters: 更多...
 
void ForEachEntity (UObject *InObject, uint16 PropertyOffset, OperationalType &OutValue)
 Task callback that retrieves the object's current value via a fast pointer offset, and writes it to the specified output variable Must be invoked with a task builder with the specified parameters: 更多...
 

详细描述

template<typename PropertyType, typename OperationalType = PropertyType>
struct UE::MovieScene::TGetPropertyValues< PropertyType, OperationalType >

Stateless entity task that writes current property values to the specified intermediate component.

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<FMyOperationalType> IntermediateTransformComponent = ...;
TComponentTypeID<UObject*> BoundObject = ...;

FEntityTaskBuilder()
.Read(BoundObject)
.Read(CustomProperty)
.Write(IntermediateTransformComponent)
.Dispatch_PerEntity<TGetPropertyValues<FTransform, FMyOperationalType>>( ... );

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)
.Write(IntermediateTransformComponent)
.Dispatch_PerAllocation<TGetPropertyValues<FTransform, FMyOperationalType>>( ... );

成员函数说明

◆ ForEachAllocation() [1/2]

template<typename PropertyType , typename OperationalType = PropertyType>
void UE::MovieScene::TGetPropertyValues< PropertyType, OperationalType >::ForEachAllocation ( const FEntityAllocation *  Allocation,
TRead< UObject * >  BoundObjectComponents,
FThreeWayAccessor  PropertyBindingComponents,
TWrite< OperationalType >  OutValueComponents 
)
inline

Task callback that writes current property values for objects into an output component 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>>(...) )
.Write(     TComponentTypeID<OperationalType>(...) )
.Dispatch_PerAllocation<TGetPropertyValues<PropertyType, OperationalType>>(...);

◆ ForEachAllocation() [2/2]

template<typename PropertyType , typename OperationalType = PropertyType>
void UE::MovieScene::TGetPropertyValues< PropertyType, OperationalType >::ForEachAllocation ( const FEntityAllocation *  Allocation,
TRead< UObject * >  BoundObjectComponents,
FTwoWayAccessor  PropertyBindingComponents,
TWrite< OperationalType >  OutValueComponents 
)
inline

Task callback that writes current property values for objects into an output component 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<OperationalType>(...) )
.Dispatch_PerAllocation<TGetPropertyValues<PropertyType ,OperationalType>>(...);

◆ ForEachEntity() [1/3]

template<typename PropertyType , typename OperationalType = PropertyType>
void UE::MovieScene::TGetPropertyValues< PropertyType, OperationalType >::ForEachEntity ( UObject *  InObject,
FCustomPropertyIndex  CustomPropertyIndex,
OperationalType &  OutValue 
)
inline

Task callback that retrieves the object's current value via a custom native setter function, and writes it to the specified output variable Must be invoked with a task builder with the specified parameters:

FEntityTaskBuilder()
.Read( TComponentTypeID<UObject*>(...) )
.Read( TComponentTypeID<FCustomPropertyIndex>(...) )
.Write( TComponentTypeID<OperationalType>(...) )
.Dispatch_PerEntity<TGetPropertyValues<PropertyType, OperationalType>>(...);

◆ ForEachEntity() [2/3]

template<typename PropertyType , typename OperationalType = PropertyType>
void UE::MovieScene::TGetPropertyValues< PropertyType, OperationalType >::ForEachEntity ( UObject *  InObject,
TSharedPtr< FTrackInstancePropertyBindings >  PropertyBindings,
OperationalType &  OutValue 
)
inline

Task callback that retrieves the object's current value via a slow (legacy) track instance binding, and writes it to the specified output variable Must be invoked with a task builder with the specified parameters:

FEntityTaskBuilder()
.Read( TComponentTypeID<UObject*>(...) )
.Read( TComponentTypeID<TSharedPtr<FTrackInstancePropertyBindings>>(...) )
.Read( TComponentTypeID<OperationalType>(...) )
.Dispatch_PerEntity<TGetPropertyValues<PropertyType, OperationalType>>(...);

◆ ForEachEntity() [3/3]

template<typename PropertyType , typename OperationalType = PropertyType>
void UE::MovieScene::TGetPropertyValues< PropertyType, OperationalType >::ForEachEntity ( UObject *  InObject,
uint16  PropertyOffset,
OperationalType &  OutValue 
)
inline

Task callback that retrieves the object's current value via a fast pointer offset, and writes it to the specified output variable Must be invoked with a task builder with the specified parameters:

FEntityTaskBuilder()
.Read( TComponentTypeID<UObject*>(...) )
.Read( TComponentTypeID<uint16>(...) )
.Read( TComponentTypeID<OperationalType>(...) )
.Dispatch_PerEntity<TGetPropertyValues<PropertyType, OperationalType>>(...);

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