![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#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 FName > | GetSubObjectNetConditionGroups (FObjectKey SubObjectKey) const |
| NETCORE_API void | CountBytes (FArchive &Ar) const |
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.
|
inline |
Return the groups the subobject is a part of. Will be empty if it wasn't added to any.
| void UE::Net::FNetConditionGroupManager::RegisterSubObjectInGroup | ( | UObject * | SubObject, |
| FName | NetConditionGroup | ||
| ) |
Add a subobject into a netcondition group
| void UE::Net::FNetConditionGroupManager::RegisterSubObjectInMultipleGroups | ( | UObject * | SubObject, |
| TArrayView< FName > | NetConditionGroups | ||
| ) |
Add a subobject to many netcondition groups
Remove the subobject from all groups it was included into
| void UE::Net::FNetConditionGroupManager::UnregisterSubObjectFromGroup | ( | UObject * | SubObject, |
| FName | NetConditionGroup | ||
| ) |
Remove a subobject from a netcondition group
| void UE::Net::FNetConditionGroupManager::UnregisterSubObjectFromMultipleGroups | ( | UObject * | SubObject, |
| TArrayView< FName > | NetConditionGroups | ||
| ) |
Remove a subobject from many netcondition groups