Interface INetworkEventsApi
API that can be used to inspect the state of the simulated network and trigger events.
Namespace: Unity.Multiplayer.Tools.NetworkSimulator .Runtime
Assembly: solution.dll
Syntax
public interface INetworkEventsApi
Properties
Name | Description |
---|---|
Current |
Returns the current connection preset used to simulate network conditions. |
Is |
Returns whether the Network Simulator fulfills all required dependencies and is available to be used. |
Is |
Returns true when Network Simulator is connected. |
Methods
Name | Description |
---|---|
Change |
Changes the current connection preset used to simulate network condition parameters. |
Disconnect() | Simulates a network disconnection. |
Reconnect() | Reconnects after simulating a network disconnection. |
Trigger |
Simulates a lag spike for the specified duration. |
Trigger |
Simulates a lag spike for the specified duration. |