Class NetworkBehaviourReferenceIntegrationTests
Integration tests for NetworkBehaviourReference
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Syntax
public class NetworkBehaviourReferenceIntegrationTests : NetcodeIntegrationTest
Properties
NumberOfClients
Declaration
protected override int NumberOfClients { get; }
Property Value
Type | Description |
---|---|
Int32 |
Overrides
Methods
OnCreatePlayerPrefab()
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
public IEnumerator TestTryGetWithAndWithOutExistingComponent()
Returns
Type | Description |
---|---|
IEnumerator |