FEntityFactories::DefineChildComponent

Specifies that if a component is present on a parent entity, the given child component should be created on any child entity, and initialized with the given initializer.

Windows
MacOS
Linux

References

Module

MovieScene

Header

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

Include

#include "EntitySystem/MovieSceneEntityFactory.h"

Source

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

Syntax

template<typename ParentComponent, typename ChildComponent, typename InitializerCallback>
void DefineChildComponent
(
    TComponentTypeID< ParentComponent > InParentType,
    TComponentTypeID< ChildComponent > InChildType,
    InitializerCallback && InInitializer
)

Remarks

Specifies that if a component is present on a parent entity, the given child component should be created on any child entity, and initialized with the given initializer. @note include "EntitySystem/MovieSceneEntityFactoryTemplates.h" for definition

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