engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FMovieSceneEntityComponentFieldBuilder结构体 参考

Builder class used for populating an FMovieSceneEntityComponentField with data. 更多...

#include <MovieSceneEvaluationField.h>

Public 成员函数

int32 AddMetaData (const FMovieSceneEvaluationFieldEntityMetaData &InMetaData)
 Add meta-data to this tree returning its index within this builder 更多...
 
void AddOneShotEntity (const TRange< FFrameNumber > &OneShotRange, int32 LocalIndex, int32 InMetaDataIndex=INDEX_NONE)
 Add a one-shot entity to the field for a given range 更多...
 
void AddOneShotEntity (const TRange< FFrameNumber > &OneShotRange, UObject *EntityOwner, uint32 EntityID=0, int32 InMetaDataIndex=INDEX_NONE)
 Add a one-shot entity to the field for a given range. 更多...
 
void AddPersistentEntity (const TRange< FFrameNumber > &Range, int32 LocalIndex, int32 InMetaDataIndex=INDEX_NONE)
 Add a persistent entity to the field for a given range 更多...
 
void AddPersistentEntity (const TRange< FFrameNumber > &Range, UObject *EntityOwner, uint32 EntityID=0, int32 InMetaDataIndex=INDEX_NONE)
 Add a persistent entity to the field for a given range. 更多...
 
int32 FindOrAddEntity (UObject *EntityOwner, uint32 EntityID=0)
 Retrieve an index for the entity that is identified by the specified owner and ID 更多...
 
 FMovieSceneEntityComponentFieldBuilder (FMovieSceneEntityComponentField *InField)
 Construction from a field to populate
 
FMovieSceneEvaluationFieldSharedEntityMetaData & GetSharedMetaData ()
 Access the shared meta-data for all the entities created by this builder.
 
 ~FMovieSceneEntityComponentFieldBuilder ()
 Destructor that cleans up redundant data if necessary
 

详细描述

Builder class used for populating an FMovieSceneEntityComponentField with data.

Ensures that null or redundant entities or meta-data are not added to the field, and that all indices are valid and correct.

成员函数说明

◆ AddMetaData()

int32 FMovieSceneEntityComponentFieldBuilder::AddMetaData ( const FMovieSceneEvaluationFieldEntityMetaData &  InMetaData)

Add meta-data to this tree returning its index within this builder

参数
InMetaDataThe meta-data to add.
返回
A unique index for this meta-data within this builder, or INDEX_NONE if the meta-data is redundant

◆ AddOneShotEntity() [1/2]

void FMovieSceneEntityComponentFieldBuilder::AddOneShotEntity ( const TRange< FFrameNumber > &  OneShotRange,
int32  LocalIndex,
int32  InMetaDataIndex = INDEX_NONE 
)

Add a one-shot entity to the field for a given range

注解
: One-shot entities are only ever alive for a single evaluation, regardless of the range within the field. This makes them ideal for events or triggers.
参数
RangeThe range within which this entity should be alive
LocalIndexThe index to the entity retrieved from FindOrAddEntity.
MetaDataIndex(Optional) Meta-data to use for this entitiy within this range. See AddMetaData.

◆ AddOneShotEntity() [2/2]

void FMovieSceneEntityComponentFieldBuilder::AddOneShotEntity ( const TRange< FFrameNumber > &  OneShotRange,
UObject *  EntityOwner,
uint32  EntityID = 0,
int32  InMetaDataIndex = INDEX_NONE 
)

Add a one-shot entity to the field for a given range.

Equivalent to AddOneShotEntity(Range, FindOrAddEntity(EntityOwner, EntityID)).

注解
: One-shot entities are only ever alive for a single evaluation, regardless of the range within the field. This makes them ideal for events or triggers.
参数
RangeThe range within which this entity should be alive
EntityOwnerThe owner that produces the entity at runtime. Must implement the IMovieSceneEntityProvider interface
EntityID(Optional) An identifier used to identify the entity inside IMovieSceneEntityProvider::ImportEntityImpl. Could be an index within an array or a set of flags.
MetaDataIndex(Optional) Meta-data to use for this entitiy within this range. See AddMetaData.

◆ AddPersistentEntity() [1/2]

void FMovieSceneEntityComponentFieldBuilder::AddPersistentEntity ( const TRange< FFrameNumber > &  Range,
int32  LocalIndex,
int32  InMetaDataIndex = INDEX_NONE 
)

Add a persistent entity to the field for a given range

注解
: Persistent entities remain alive for the entire duration of their applicable ranges.
参数
RangeThe range within which this entity should be alive
LocalIndexThe index to the entity retrieved from FindOrAddEntity.
MetaDataIndex(Optional) Meta-data to use for this entitiy within this range. See AddMetaData.

◆ AddPersistentEntity() [2/2]

void FMovieSceneEntityComponentFieldBuilder::AddPersistentEntity ( const TRange< FFrameNumber > &  Range,
UObject *  EntityOwner,
uint32  EntityID = 0,
int32  InMetaDataIndex = INDEX_NONE 
)

Add a persistent entity to the field for a given range.

Equivalent to AddPersistentEntity(Range, FindOrAddEntity(EntityOwner, EntityID)).

注解
: Persistent entities remain alive for the entire duration of their applicable ranges.
参数
RangeThe range within which this entity should be alive
EntityOwnerThe owner that produces the entity at runtime. Must implement the IMovieSceneEntityProvider interface
EntityID(Optional) An identifier used to identify the entity inside IMovieSceneEntityProvider::ImportEntityImpl. Could be an index within an array or a set of flags.
MetaDataIndex(Optional) Meta-data to use for this entitiy within this range. See AddMetaData.

◆ FindOrAddEntity()

int32 FMovieSceneEntityComponentFieldBuilder::FindOrAddEntity ( UObject *  EntityOwner,
uint32  EntityID = 0 
)

Retrieve an index for the entity that is identified by the specified owner and ID

参数
EntityOwnerThe owner that produces the entity at runtime. Must implement the IMovieSceneEntityProvider interface
EntityID(Optional) An identifier used to identify the entity inside IMovieSceneEntityProvider::ImportEntityImpl. Could be an index within an array or a set of flags.
返回
An index into this builder used to uniquely identify this entity.

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