UMassEntitySubsystem::AddFragmentListToEntity

Ensures that only unique fragments are added.

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 AddFragmentListToEntity
(
    FMassEntityHandle Entity,
    TConstArrayView< const UScriptStruct * > FragmentList
)

Remarks

Ensures that only unique fragments are added. @note It's caller's responsibility to ensure Entity's and FragmentList's validity.