FEntityManager::CopyComponents

Copy any and all the specified component types from one entity onto another.

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 CopyComponents
(
    FMovieSceneEntityID SrcEntityID,
    FMovieSceneEntityID DstEntityID,
    const FComponentMask & ComponentsToCopy
)

Remarks

Copy any and all the specified component types from one entity onto another. Missing components on the source entity are handled gracefully.

Parameters

Parameter

Description

SrcEntityID

The ID of the entity to copy from

DstEntityID

The ID of the entity to copy to

ComponentsToCopy

A mask constituting the components that should be copied (set bits indicate components to copy)

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