FEntityManager::AddComponent

Add the specified component type to an entity. The component value will be default-initialized.

Windows
MacOS
Linux

References

Module

MovieScene

Header

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

Include

#include "EntitySystem/MovieSceneEntityManager.h"

Source

/Engine/Source/Runtime/MovieScene/Private/EntitySystem/MovieSceneEntityManager.cpp

Syntax

void AddComponent
(
    FMovieSceneEntityID EntityID,
    FComponentTypeID ComponentTypeID
)

Remarks

Add the specified component type to an entity. The component value will be default-initialized.

Parameters

Parameter

Description

EntityID

The ID of the entity to add the component to

ComponentTypeID

The ID of the component type to add to the entity

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