engine
 
载入中...
搜索中...
未找到
Public 类型 | 所有成员列表
UE::MovieScene::TDefaultEntityTaskTraits< T > 模板结构体 参考

Default traits specialized for each user TaskImplInstance 更多...

#include <MovieSceneEntitySystemTask.h>

+ 类 UE::MovieScene::TDefaultEntityTaskTraits< T > 继承关系图:

Public 类型

enum  { AutoExpandAccessors = true }
 

详细描述

template<typename T>
struct UE::MovieScene::TDefaultEntityTaskTraits< T >

Default traits specialized for each user TaskImplInstance

成员枚举类型说明

◆ anonymous enum

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


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