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

Conditionally 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..., TAddConditional< U > > AddConditional
(
    TComponentTypeID< U > ComponentType,
    PayloadType && InPayload,
    bool bCondition
)

Remarks

Conditionally 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 if bCondition is true.

InPayload

User-specified data to forward into the component

bCondition

Condition specifying whether this component should be added or not

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