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.
| 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.
| 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.
| 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.
| MOVIESCENE_API void UE::MovieScene::FEntityFactories::DefineComplexInclusiveComponents | ( | const FComplexInclusivity & | InInclusivity | ) |
Defines a new complex inclusivity relationship.
The helper methods above are easier and preferrable.
| 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.
| MOVIESCENE_API void UE::MovieScene::FEntityFactories::DefineMutuallyInclusiveComponent | ( | TInlineValue< FMutualEntityInitializer > && | InInitializer | ) |
Specifies a mutual inclusivity relationship.
The helper method above is easier and preferrable.