Navigation
API > API/Runtime > API/Runtime/MovieScene > API/Runtime/MovieScene/TEntityBuilderImpl_TIntegerSeque-_1
Description
Replace the components of an entity with this builder's definition.
Will invalidate this instance of TEntityBuilder so its payload cannot be used again.
| Name | ReplaceEntity |
| Type | function |
| Header File | /Engine/Source/Runtime/MovieScene/Public/EntitySystem/MovieSceneEntityBuilder.h |
| Include Path | #include "EntitySystem/MovieSceneEntityBuilder.h" |
void ReplaceEntity
(
FEntityManager * EntityManager,
FMovieSceneEntityID & InOutEntityID,
FComponentMask NewType
)
Parameters
| Name | Remarks |
|---|---|
| EntityManager | The entity manager that houses EntityID. All component types must relate to this class. |
| EntityID | The entity ID to replace |
| NewType | (Optional) An additional base type to use for the new entity. Any component types not stored by this builder will be default-constructed. |