Default traits specialized for each user TaskImplInstance
更多...
#include <MovieSceneEntitySystemTask.h>
template<typename T>
struct UE::MovieScene::TDefaultEntityTaskTraits< T >
Default traits specialized for each user TaskImplInstance
◆ anonymous enum
| 枚举值 |
|---|
| AutoExpandAccessors | When true, the various component accessors are passed to the task callback as separate parameters.
When false, they are passed through as a combined template
For example:
struct FForEach_Expanded { void ForEachEntity(float, uint16, UObject*); void ForEachAllocation(const FEntityAllocation*, TRead<float>, TRead<uint16>, TRead<UObject*>); }; struct FForEach_NoExpansion { void ForEachEntity(const TEntityPtr<const float, const uint16, const UObject*>&); void ForEachAllocation(const FEntityAllocation*, const TEntityTaskComponents<TRead<float>, TRead<uint16>, TRead<UObject*>>&); }; template<> struct TEntityTaskTraits<FForEach_NoExpansion> : TDefaultEntityTaskTraits<FForEach_NoExpansion> { enum { AutoExpandAccessors = false }; };
FEntityTaskBuilder().Read<float>().Read<uint16>().Read<UObject*>().Dispatch_PerEntity<FForEach_Expanded>(...); FEntityTaskBuilder().Read<float>().Read<uint16>().Read<UObject*>().Dispatch_PerEntity<FForEach_NoExpansion>(...); FEntityTaskBuilder().Read<float>().Read<uint16>().Read<UObject*>().Dispatch_PerAllocation<FForEach_Expanded>(...); FEntityTaskBuilder().Read<float>().Read<uint16>().Read<UObject*>().Dispatch_PerAllocation<FForEach_NoExpansion>(...);
|
该结构体的文档由以下文件生成:
- MovieSceneEntitySystemTask.h