Navigation
API > API/Runtime > API/Runtime/MovieScene > API/Runtime/MovieScene/EntitySystem > API/Runtime/MovieScene/EntitySystem/TEntityBuilderIm-
References
Module | MovieScene |
Header | /Engine/Source/Runtime/MovieScene/Public/EntitySystem/MovieSceneEntityBuilder.h |
Include | #include "EntitySystem/MovieSceneEntityBuilder.h" |
template<typename U, typename PayloadType>
TEntityBuilder< T..., TAddConditional< U > > AddConditional
&40;
TComponentTypeID< U > ComponentType,
PayloadType && InPayload,
bool bCondition
&41;
Remarks
Conditionally add a component to the entity with a specific value A new builder that includes the new component and payload
Parameters
Name | 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 |