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