Class NetworkObjectDontDestroyWithOwnerTests
Inheritance
NetworkObjectDontDestroyWithOwnerTests
Assembly: solution.dll
Syntax
public class NetworkObjectDontDestroyWithOwnerTests : NetcodeIntegrationTest
Constructors
NetworkObjectDontDestroyWithOwnerTests(HostOrServer)
Declaration
public NetworkObjectDontDestroyWithOwnerTests(NetcodeIntegrationTest.HostOrServer hostOrServer)
Parameters
Fields
m_PrefabToSpawn
Declaration
protected GameObject m_PrefabToSpawn
Field Value
Properties
NumberOfClients
Declaration
protected override int NumberOfClients { get; }
Property Value
Overrides
Methods
DontDestroyWithOwnerTest()
Declaration
[UnityTestAttribute]
public IEnumerator DontDestroyWithOwnerTest()
Returns
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