TEntityRange::GetComponentOptional

Get a pointer to an entity's component from its templated component array index, using the entity's 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 * GetComponentOptional
(
    int32 EntityIndex
) const

Remarks

Get a pointer to an entity's component from its templated component array index, using the entity's index within this range.

Returns

A pointer to the component matching the constness of the access-mode, or nullptr if the component does not exist in this entity range.

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