UMassEntitySubsystem::MoveEntityToAnotherArchetype

Moves an entity over to a new archetype by copying over fragments common to both archetypes

Choose your operating system:

Windows

macOS

Linux

References

Module

MassEntity

Header

/Engine/Plugins/Runtime/MassEntity/Source/MassEntity/Public/MassEntitySubsystem.h

Include

#include "MassEntitySubsystem.h"

Source

/Engine/Plugins/Runtime/MassEntity/Source/MassEntity/Private/MassEntitySubsystem.cpp

Syntax

void MoveEntityToAnotherArchetype
(
    FMassEntityHandle Entity,
    FArchetypeHandle NewArchetypeHandle
)

Remarks

Moves an entity over to a new archetype by copying over fragments common to both archetypes

Parameters

Parameter

Description

Entity

is the entity to move

NewArchetypeHandle

the handle to the new archetype