UMassEntitySubsystem::SetEntityFragmentsValues

Copies values from FragmentInstanceList over to Entity's fragment.

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 SetEntityFragmentsValues
(
    FMassEntityHandle Entity,
    TArrayView< const FInstancedStruct > FragmentInstanceList
)

Remarks

Copies values from FragmentInstanceList over to Entity's fragment. Caller is responsible for ensuring that the given entity does have given fragments. Failing this assumption will cause a check-fail.