Navigation
API > API/Runtime > API/Runtime/NetCore
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.
| Name | FNetConditionGroupManager |
| Type | class |
| Header File | /Engine/Source/Runtime/Net/Core/Public/Net/Core/Misc/NetConditionGroupManager.h |
| Include Path | #include "Net/Core/Misc/NetConditionGroupManager.h" |
Syntax
class FNetConditionGroupManager
Structs
| Name | Remarks |
|---|---|
| FSubObjectGroupInfo |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| SubObjectGroupMap | TMap< FObjectKey, FSubObjectGroupInfo > | Map of the subobjects and the groups they are a part of | Net/Core/Misc/NetConditionGroupManager.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CountBytes
(
FArchive& Ar |
Net/Core/Misc/NetConditionGroupManager.h | ||
TArrayView< const FName > GetSubObjectNetConditionGroups
(
FObjectKey SubObjectKey |
Return the groups the subobject is a part of. Will be empty if it wasn't added to any. | Net/Core/Misc/NetConditionGroupManager.h | |
| Add a subobject into a netcondition group | Net/Core/Misc/NetConditionGroupManager.h | ||
void RegisterSubObjectInMultipleGroups
(
UObject* SubObject, |
Add a subobject to many netcondition groups | Net/Core/Misc/NetConditionGroupManager.h | |
void UnregisterSubObjectFromAllGroups
(
UObject* SubObject |
Remove the subobject from all groups it was included into | Net/Core/Misc/NetConditionGroupManager.h | |
| Remove a subobject from a netcondition group | Net/Core/Misc/NetConditionGroupManager.h | ||
void UnregisterSubObjectFromMultipleGroups
(
UObject* SubObject, |
Remove a subobject from many netcondition groups | Net/Core/Misc/NetConditionGroupManager.h |