Navigation
API > API/Runtime > API/Runtime/MovieScene > API/Runtime/MovieScene/TEntityPtr
Description
Optionally retrieve the component at the specified ComponentTypeIndex within this TEntityPtr's parameters.
The const qualifier of the component will match the access mode for the component (const for read, non-const for write)
| Name | GetOptional |
| Type | function |
| Header File | /Engine/Source/Runtime/MovieScene/Public/EntitySystem/MovieSceneEntityRange.h |
| Include Path | #include "EntitySystem/MovieSceneEntityRange.h" |
template<int ComponentTypeIndex>
auto * GetOptional() const
A pointer to the component value, or nullptr if this entity does not have such a component.