UMassEntitySubsystem::BatchSetEntityFragmentsValues

Copies values from FragmentInstanceList over to fragments of given entities collection.

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

static void BatchSetEntityFragmentsValues
(
    const FArchetypeChunkCollection & SparseEntities,
    TArrayView< const FInstancedStruct > FragmentInstanceList
)

Remarks

Copies values from FragmentInstanceList over to fragments of given entities collection. The caller is responsible for ensuring that the given entity archetype (FArchetypeChunkCollection.Archetype) does have given fragments. Failing this assumption will cause a check-fail.