Navigation
API > API/Runtime > API/Runtime/MovieScene > API/Runtime/MovieScene/FEntityManager
Description
Attempt to write to an entity's component.
this is a general purpose convenience utility which should not be used for high-performance runtime code. See FEntityTaskBuilder.
| Name | WriteComponent |
| Type | function |
| Header File | /Engine/Source/Runtime/MovieScene/Public/EntitySystem/MovieSceneEntityManager.h |
| Include Path | #include "EntitySystem/MovieSceneEntityManager.h" |
template<typename T>
TComponentLock < TWriteOptional < T > > WriteComponent
(
FMovieSceneEntityID Entity,
TComponentTypeID < T > ComponentTypeID
)
A scoped component ptr that points directly to the entity's component, or nullptr if it does not exist
Parameters
| Name | Remarks |
|---|---|
| Entity | The ID of the entity to read from |
| ComponentTypeID | The component that is to be read |