UMassEntitySubsystem::CreateEntity

Creates fully built entity ready to be used by the subsystem

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

FMassEntityHandle CreateEntity
(
    TConstArrayView< FInstancedStruct > FragmentInstanceList
)

Remarks

Creates fully built entity ready to be used by the subsystem

Returns

FMassEntityHandle id of the newly created entity

Parameters

Parameter

Description

FragmentInstanceList

is the fragments to create the entity from and initialize values