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

#include <NetObjectFactoryRegistry.h>

Classes

struct  FFactoryData
 

Static Public Member Functions

static IRISCORE_API void RegisterFactory (UClass *FactoryClass, FName FactoryName)
 
static IRISCORE_API void UnregisterFactory (FName FactoryName)
 
static IRISCORE_API FNetObjectFactoryId GetFactoryIdFromName (FName FactoryName)
 
static IRISCORE_API bool IsValidFactoryId (FNetObjectFactoryId Id)
 
static IRISCORE_API void SetFactoryRegistrationAllowed (bool bAllowed)
 
static constexpr uint32 GetMaxBits ()
 
static const TConstArrayView< FFactoryDataGetRegisteredFactories ()
 

Static Public Attributes

static constexpr uint32 MaxFactories = UE_IRIS_MAX_NETOBJECT_FACTORIES
 

Detailed Description

Keeps track of Iris NetObjectFactory templates NetObjectFactories must all be registered before any Iris ReplicationSystem is created.

Member Function Documentation

◆ GetFactoryIdFromName()

FNetObjectFactoryId UE::Net::FNetObjectFactoryRegistry::GetFactoryIdFromName ( FName  FactoryName)
static

Find the FNetFactoryID that was assigned to name on registration

◆ GetMaxBits()

static constexpr uint32 UE::Net::FNetObjectFactoryRegistry::GetMaxBits ( )
inlinestaticconstexpr

The amount of bits to serialize FNetFactoryIds with

◆ GetRegisteredFactories()

static const TConstArrayView< FFactoryData > UE::Net::FNetObjectFactoryRegistry::GetRegisteredFactories ( )
inlinestatic

The registered factories ready to be instantiated by the replication bridge

◆ IsValidFactoryId()

bool UE::Net::FNetObjectFactoryRegistry::IsValidFactoryId ( FNetObjectFactoryId  Id)
static

◆ RegisterFactory()

void UE::Net::FNetObjectFactoryRegistry::RegisterFactory ( UClass FactoryClass,
FName  FactoryName 
)
static

Register a UNetObjectFactory class and associate with a specific name.

◆ SetFactoryRegistrationAllowed()

void UE::Net::FNetObjectFactoryRegistry::SetFactoryRegistrationAllowed ( bool  bAllowed)
static

The engine sets this false after it created an Iris replication system since its now illegal to register new factories

◆ UnregisterFactory()

void UE::Net::FNetObjectFactoryRegistry::UnregisterFactory ( FName  FactoryName)
static

Unregister the UNetObjectFactory class associated with the name

Member Data Documentation

◆ MaxFactories

constexpr uint32 UE::Net::FNetObjectFactoryRegistry::MaxFactories = UE_IRIS_MAX_NETOBJECT_FACTORIES
staticconstexpr

Limit how many factories can be registered


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