TEntityBuilderImpl< TIntegerSequence< int, Indices... >, T... >::Add

Add a component to the entity with a specific value

Windows
MacOS
Linux

References

Module

MovieScene

Header

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

Include

#include "EntitySystem/MovieSceneEntityBuilder.h"

Syntax

template<typename U, typename PayloadType>
TEntityBuilder< T..., TAdd< U > > Add
(
    TComponentTypeID< U > ComponentType,
    PayloadType && InPayload
)

Remarks

Add a component to the entity with a specific value

Returns

A new builder that includes the new component and payload

Parameters

Parameter

Description

ComponentType

The component type ID to add to the entity. Must be valid.

InPayload

User-specified data to forward into the component

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