UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Net::FNetConditionGroupManager Class Reference

#include <NetConditionGroupManager.h>

Public Member Functions

NETCORE_API void RegisterSubObjectInGroup (UObject *SubObject, FName NetConditionGroup)
 
NETCORE_API void RegisterSubObjectInMultipleGroups (UObject *SubObject, TArrayView< FName > NetConditionGroups)
 
NETCORE_API void UnregisterSubObjectFromGroup (UObject *SubObject, FName NetConditionGroup)
 
NETCORE_API void UnregisterSubObjectFromMultipleGroups (UObject *SubObject, TArrayView< FName > NetConditionGroups)
 
NETCORE_API void UnregisterSubObjectFromAllGroups (UObject *SubObject)
 
TArrayView< const FNameGetSubObjectNetConditionGroups (FObjectKey SubObjectKey) const
 
NETCORE_API void CountBytes (FArchive &Ar) const
 

Detailed Description

Manage the membership of subobject's replicated with a COND_NetGroup condition. For a COND_NetGroup subobject to be replicated to a connection, they both need to be part of the same netcondition group. A netcondition group is simply an FName. This manager holds onto the groups the subobject is a part of, while the connection's player controller is where we hold information on the user's groups.

Groups are inclusive and non-binding so subobject's can be part of multiple groups at the same time. As long as a player is a member of one of the subobject's group, that subobject will be replicated to that connection.

Member Function Documentation

◆ CountBytes()

void UE::Net::FNetConditionGroupManager::CountBytes ( FArchive Ar) const

◆ GetSubObjectNetConditionGroups()

TArrayView< const FName > UE::Net::FNetConditionGroupManager::GetSubObjectNetConditionGroups ( FObjectKey  SubObjectKey) const
inline

Return the groups the subobject is a part of. Will be empty if it wasn't added to any.

◆ RegisterSubObjectInGroup()

void UE::Net::FNetConditionGroupManager::RegisterSubObjectInGroup ( UObject SubObject,
FName  NetConditionGroup 
)

Add a subobject into a netcondition group

◆ RegisterSubObjectInMultipleGroups()

void UE::Net::FNetConditionGroupManager::RegisterSubObjectInMultipleGroups ( UObject SubObject,
TArrayView< FName NetConditionGroups 
)

Add a subobject to many netcondition groups

◆ UnregisterSubObjectFromAllGroups()

void UE::Net::FNetConditionGroupManager::UnregisterSubObjectFromAllGroups ( UObject SubObject)

Remove the subobject from all groups it was included into

◆ UnregisterSubObjectFromGroup()

void UE::Net::FNetConditionGroupManager::UnregisterSubObjectFromGroup ( UObject SubObject,
FName  NetConditionGroup 
)

Remove a subobject from a netcondition group

◆ UnregisterSubObjectFromMultipleGroups()

void UE::Net::FNetConditionGroupManager::UnregisterSubObjectFromMultipleGroups ( UObject SubObject,
TArrayView< FName NetConditionGroups 
)

Remove a subobject from many netcondition groups


The documentation for this class was generated from the following files: