Navigation
API > API/Plugins > API/Plugins/MassReplication > API/Plugins/MassReplication/UMassReplicationSubsystem
Description
Resets the item with NetworkID in the EntityInfoMap if its currently Set / Valid and its the most recent ReplicationID. In this case the FMassEntityHandle that was reset is returned. Otherwise FMassEntityHandle::IsSet() will be false on the returned FMassEntityHandle Must be called after SetEntity and just before the Entity is removed on the client. This sets the Entity member of the AddToEntityInfoMap item to FMassEntityHandle so it will be not IsSet()
| Name | ResetEntityIfValid |
| Type | function |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassReplication/Public/MassReplicationSubsystem.h |
| Include Path | #include "MassReplicationSubsystem.h" |
| Source | /Engine/Plugins/Runtime/MassGameplay/Source/MassReplication/Private/MassReplicationSubsystem.cpp |
FMassEntityHandle ResetEntityIfValid
(
const FMassNetworkID NetworkID,
int32 ReplicationID
)