![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NetSubObjectRegistry.h>
Classes | |
| struct | FEntry |
Public Types | |
| enum class | EResult : uint8 { NewEntry , AlreadyRegistered , NetConditionConflict } |
Public Member Functions | |
| NETCORE_API FSubObjectRegistry::EResult | AddSubObjectUnique (UObject *InSubObject, ELifetimeCondition InNetCondition) |
| NETCORE_API bool | RemoveSubObject (UObject *InSubObject) |
| bool | IsEmpty () const |
| int32 | Num () const |
| NETCORE_API void | CleanRegistryIndexes (const TArrayView< int32 > &IndexesToClean) |
| NETCORE_API ELifetimeCondition | GetNetCondition (UObject *SubObject) const |
| const TArray< FSubObjectRegistry::FEntry > & | GetRegistryList () const |
| NETCORE_API bool | IsSubObjectInRegistry (const UObject *SubObject) const |
Stores the SubObjects to replicate and the network condition dictating to which connection they can replicate to.
|
strong |
| FSubObjectRegistry::EResult UE::Net::FSubObjectRegistry::AddSubObjectUnique | ( | UObject * | InSubObject, |
| ELifetimeCondition | InNetCondition | ||
| ) |
Adds a subobject and returns if it's a new entry or existing entry
| void UE::Net::FSubObjectRegistry::CleanRegistryIndexes | ( | const TArrayView< int32 > & | IndexesToClean | ) |
Remove all the indexes specified by the passed array
| IndexesToClean | Array of indexes sorted from smallest to biggest. The sorted order is assumed to have been done by the caller |
| ELifetimeCondition UE::Net::FSubObjectRegistry::GetNetCondition | ( | UObject * | SubObject | ) | const |
Find the NetCondition of a SubObject. Returns COND_MAX if not registered
|
inline |
Returns the list of registered subobjects
|
inline |
Returns true if the subobject is contained in this list
|
inline |
Remove the subobject from the replicated list. Returns true if the subobject had been registered.