Class NetworkBehaviourReferenceIntegrationTests
Integration tests for NetworkBehaviourReference
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: solution.dll
Syntax
public class NetworkBehaviourReferenceIntegrationTests : NetcodeIntegrationTest
Properties
NumberOfClients
Declaration
protected override int NumberOfClients { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
Methods
OnCreatePlayerPrefab()
Override this to add components or adjustments to the default player prefab m_PlayerPrefab
Declaration
protected override void OnCreatePlayerPrefab()
Overrides
TestTryGetWithAndWithOutExistingComponent()
This test validates that if a component does not exist the NetworkBehaviourReference will not throw an invalid cast exception. (It is a full integration test to assure the NetworkObjects are spawned)
Declaration
[UnityTestAttribute]
public IEnumerator TestTryGetWithAndWithOutExistingComponent()
Returns
Type | Description |
---|---|
IEnumerator |