TEntityRange::GetComponent

Get the component from the templated component array index, using its index within this range.

Windows
MacOS
Linux

References

Module

MovieScene

Header

/Engine/Source/Runtime/MovieScene/Public/EntitySystem/MovieSceneEntityRange.h

Include

#include "EntitySystem/MovieSceneEntityRange.h"

Syntax

template<int ComponentTypeIndex>
auto & GetComponent
(
    int32 EntityIndex
) const

Remarks

Get the component from the templated component array index, using its index within this range. @note will fail an assertion if this entity range does not contain this component type (eg Read/WriteOptional)

Returns

A reference to the component matching the constness of the access-mode.

Parameters

Parameter

Description

EntityIndex

The index of the entity within this range

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss