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

A class that contains all the component factory relationships. 更多...

#include <MovieSceneEntityFactory.h>

Public 成员函数

MOVIESCENE_API int32 ComputeChildComponents (const FComponentMask &ParentComponentMask, FComponentMask &ChildComponentMask)
 Given a set of components on a parent entity, compute what components should exist on a child entity. 更多...
 
MOVIESCENE_API int32 ComputeMutuallyInclusiveComponents (FComponentMask &ComponentMask)
 Given a set of components on an entity, computes what other components should also exist on this entity. 更多...
 
void DefineChildComponent (FComponentTypeID InChildComponent)
 Defines a component as something that should always be created on every child entity.
 
void DefineChildComponent (FComponentTypeID InParentComponent, FComponentTypeID InChildComponent)
 Specifies that if a component is present on a parent entity, the given child component should be created on any child entity.
 
template<typename ParentComponent , typename ChildComponent , typename InitializerCallback >
void DefineChildComponent (TComponentTypeID< ParentComponent > InParentType, TComponentTypeID< ChildComponent > InChildType, InitializerCallback &&InInitializer)
 Specifies that if a component is present on a parent entity, the given child component should be created on any child entity, and initialized with the given initializer.
 
MOVIESCENE_API void DefineChildComponent (TInlineValue< FChildEntityInitializer > &&InInitializer)
 Adds the definition for a child component. 更多...
 
MOVIESCENE_API void DefineComplexInclusiveComponents (const FComplexInclusivity &InInclusivity)
 Defines a new complex inclusivity relationship. 更多...
 
template<typename... ComponentTypes>
void DefineComplexInclusiveComponents (const FComplexInclusivityFilter &InFilter, ComponentTypes... InComponents)
 Specifies that if an entity matches the given filter, the specified components should be created on it.
 
MOVIESCENE_API void DefineComplexInclusiveComponents (const FComplexInclusivityFilter &InFilter, FComponentTypeID InComponent)
 Specifies that if an entity matches the given filter, the specified component should be created on it.
 
MOVIESCENE_API void DefineMutuallyInclusiveComponent (FComponentTypeID InComponentA, FComponentTypeID InComponentB)
 Indicates that if the first component exists on an entity, the second component should be created on that entity too. 更多...
 
MOVIESCENE_API void DefineMutuallyInclusiveComponent (TInlineValue< FMutualEntityInitializer > &&InInitializer)
 Specifies a mutual inclusivity relationship. 更多...
 
template<typename ComponentType >
void DuplicateChildComponent (TComponentTypeID< ComponentType > InComponent)
 Makes the given component automatically copied from a parent entity to all its children entities.
 

详细描述

A class that contains all the component factory relationships.

A source component (imported from an entity provider) can trigger the creation of other components on the same entity or on children entities of its entity.

成员函数说明

◆ ComputeChildComponents()

MOVIESCENE_API int32 UE::MovieScene::FEntityFactories::ComputeChildComponents ( const FComponentMask &  ParentComponentMask,
FComponentMask &  ChildComponentMask 
)

Given a set of components on a parent entity, compute what components should exist on a child entity.

This resolves all the parent-to-child relationships.

◆ ComputeMutuallyInclusiveComponents()

MOVIESCENE_API int32 UE::MovieScene::FEntityFactories::ComputeMutuallyInclusiveComponents ( FComponentMask &  ComponentMask)

Given a set of components on an entity, computes what other components should also exist on this entity.

This resolves all the mutual and complex inclusivity relationships.

◆ DefineChildComponent()

MOVIESCENE_API void UE::MovieScene::FEntityFactories::DefineChildComponent ( TInlineValue< FChildEntityInitializer > &&  InInitializer)

Adds the definition for a child component.

The helper methods above are easier and preferrable.

◆ DefineComplexInclusiveComponents()

MOVIESCENE_API void UE::MovieScene::FEntityFactories::DefineComplexInclusiveComponents ( const FComplexInclusivity &  InInclusivity)

Defines a new complex inclusivity relationship.

The helper methods above are easier and preferrable.

◆ DefineMutuallyInclusiveComponent() [1/2]

MOVIESCENE_API void UE::MovieScene::FEntityFactories::DefineMutuallyInclusiveComponent ( FComponentTypeID  InComponentA,
FComponentTypeID  InComponentB 
)

Indicates that if the first component exists on an entity, the second component should be created on that entity too.

注解
: the inverse is not implied (ie B can still exist without A)

◆ DefineMutuallyInclusiveComponent() [2/2]

MOVIESCENE_API void UE::MovieScene::FEntityFactories::DefineMutuallyInclusiveComponent ( TInlineValue< FMutualEntityInitializer > &&  InInitializer)

Specifies a mutual inclusivity relationship.

The helper method above is easier and preferrable.


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