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

Add the specified default-constructed component to the entity if a condition is met

Windows
MacOS
Linux

References

Module

MovieScene

Header

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

Include

#include "EntitySystem/MovieSceneEntityBuilder.h"

Syntax

TEntityBuilder< T..., FAddConditional > AddDefaultedConditional
(
    FComponentTypeID ComponentType,
    bool bCondition
)

Remarks

Add the specified default-constructed component to the entity if a condition is met

Returns

A new builder that includes the new component

Parameters

Parameter

Description

ComponentType

A valid component type ID to add. Must be valid.

bCondition

Condition specifying whether this tag 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