Class MockNetworkManager
A mock network manager containing the mock client ID of the local instance and parameters of the underlying mock network solution (like how many bytes must be sent or received to update an object's position)
Inherited Members
Namespace: Unity.Multiplayer.Tools.Adapters.MockNgo
Syntax
[AddComponentMenu("MP Tools Dev/MockNetworkManager", 1000)]
public class MockNetworkManager : MonoBehaviour
Remarks
There should be only one of these.
Properties
DespawnMessageByteCount
The number of bytes of network traffic incurred when an object is despawned.
Declaration
public int DespawnMessageByteCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
LocalClientID
The client ID of the local instance
Declaration
public int LocalClientID { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
OwnershipChangeByteCount
The number of bytes of network traffic incurred when an object's owner is changed
Declaration
public int OwnershipChangeByteCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
PositionUpdateByteCount
The number of bytes of network traffic incurred when an object's position changes.
Declaration
public int PositionUpdateByteCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
RotationUpdateByteCount
The number of bytes of network traffic incurred when an object's rotation changes.
Declaration
public int RotationUpdateByteCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
ScaleUpdateByteCount
Declaration
public int ScaleUpdateByteCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
SpawnMessageByteCount
The number of bytes of network traffic incurred when an object is spawned.
Declaration
public int SpawnMessageByteCount { get; set; }
Property Value
Type | Description |
---|---|
Int32 |