Navigation
API > API/Runtime > API/Runtime/MovieScene > API/Runtime/MovieScene/TEntityRange
Description
- Get the component from the templated component array index, using its index within this range.
-
will fail an assertion if this entity range does not contain this component type (eg Read/WriteOptional)
| Name | GetComponent |
| Type | function |
| Header File | /Engine/Source/Runtime/MovieScene/Public/EntitySystem/MovieSceneEntityRange.h |
| Include Path | #include "EntitySystem/MovieSceneEntityRange.h" |
template<int ComponentTypeIndex>
auto & GetComponent
(
int32 EntityIndex
) const
A reference to the component matching the constness of the access-mode.
Parameters
| Name | Remarks |
|---|---|
| EntityIndex | The index of the entity within this range |