UMassEntitySubsystem::CreateArchetype

CreateArchetype from a composition descriptor and initial values

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

FArchetypeHandle CreateArchetype
(
    const FMassArchetypeCompositionDescriptor & Composition,
    const FMassArchetypeSharedFragmentValues & SharedFragmentValues
)

Remarks

CreateArchetype from a composition descriptor and initial values

Returns

a handle of a new archetype

Parameters

Parameter

Description

Composition

of fragment, tag and chunk fragment types

SharedFragmentValues

are the actual pointer to shared fragments