Class NetworkBehaviourGenericTests
This class is for testing general fixes or functionality of NetworkBehaviours
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: solution.dll
Syntax
public class NetworkBehaviourGenericTests : NetcodeIntegrationTest
Properties
Name | Description |
---|---|
Number |
Methods
Name | Description |
---|---|
Can |
Override this method and return false in order to be able to manually control when the server and clients are started. |
On |
This validates that upon a client disconnecting, the server-side client's player clone will invoke NetworkBehaviour.OnNetworkDespawn when the component precedes the NetworkObject component.(PR-2323) |
On |
Invoked immediately after the player prefab GameObject is created prior to adding a NetworkObject component |
On |
Called before creating and starting the server and clients
Note: For All |
Validate |
This validates the fix for when a child GameObject with a NetworkBehaviour is deleted while the parent GameObject with a NetworkObject is spawned and is not deleted until a later time would cause an exception due to the NetworkBehaviour not being removed from the NetworkObject.ChildNetworkBehaviours list. |
Validate |
This test validates a fix to NetworkBehaviour.NetworkObject when the NetworkManager.LogLevel is set to Developer Note: This test does not require any clients, but should not impact this particular test if new tests are added to this class that do require clients |
Validated |
This validates the fix for when a child GameObject with a NetworkBehaviour is deleted while the parent GameObject with a NetworkObject is spawned and is not deleted until a later time would cause an exception due to the NetworkBehaviour not being removed from the NetworkObject.ChildNetworkBehaviours list. |