Class NetworkVariableBaseInitializesWhenPersisted
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
[TestFixture(new object[] { NetcodeIntegrationTest.HostOrServer.Server })]
[TestFixture(new object[] { NetcodeIntegrationTest.HostOrServer.Host })]
public class NetworkVariableBaseInitializesWhenPersisted : NetcodeIntegrationTest
Constructors
NetworkVariableBaseInitializesWhenPersisted(HostOrServer)
Declaration
public NetworkVariableBaseInitializesWhenPersisted(NetcodeIntegrationTest.HostOrServer hostOrServer)
Parameters
| Type | Name | Description |
|---|---|---|
| NetcodeIntegrationTest.HostOrServer | hostOrServer |
Properties
NumberOfClients
Gets the number of clients to be created for the integration test.
Declaration
protected override int NumberOfClients { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
Methods
OnOneTimeSetup()
Override this method to perform any setup that needs to be done once before any tests are run. This method is called during the OneTimeSetup() process.
Declaration
protected override void OnOneTimeSetup()
Overrides
OnOneTimeTearDown()
Override this method to do handle cleaning up once the test(s) within the child derived class have completed Note: For AllTests mode this is called before ShutdownAndCleanUp.
Declaration
protected override void OnOneTimeTearDown()
Overrides
OnServerAndClientsCreated()
This is invoked before the server and client(s) are started. Override this method if you want to make any adjustments to their NetworkManager instances.
Declaration
protected override void OnServerAndClientsCreated()
Overrides
OnTearDown()
Note: For PerTest mode this is called before ShutdownAndCleanUp.
Declaration
protected override IEnumerator OnTearDown()
Returns
| Type | Description |
|---|---|
| IEnumerator | An IEnumerator for use with Unity's coroutine system. |
Overrides
PrefabSessionIstantiationPass(int)
Declaration
[UnityTest]
public IEnumerator PrefabSessionIstantiationPass(int iterationsLeft)
Parameters
| Type | Name | Description |
|---|---|---|
| int | iterationsLeft |
Returns
| Type | Description |
|---|---|
| IEnumerator |