Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UNetDriver
Description
Explicitly assigns NetID to Object. Can be called on clients that have received a NetID generated on the server by a call to CreateNetIDForObject. These functions can be used to associate actor instances that are spawned manually for replication, as opposed to the default behavior of letting the engine spawn the client's instance of a replicated actor automatically. Only actors or Iris root objects are supported.
| Name | AssignNetIDToObject |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/NetDriver.h |
| Include Path | #include "Engine/NetDriver.h" |
| Source | /Engine/Source/Runtime/Engine/Private/NetDriver.cpp |
void AssignNetIDToObject
(
UE::Net::FNetIDVariant NetID,
const UObject * Object
)
See Also
- UNetDriver::CreateNetIDForObject