Class NetworkTransformOwnershipTests.VerifyObjectIsSpawnedOnClient
NetworkTransformOwnershipTests helper behaviour
Inheritance
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
public class NetworkTransformOwnershipTests.VerifyObjectIsSpawnedOnClient : NetworkBehaviour
Methods
GetClientInstance(ulong)
Declaration
public static NetworkTransformOwnershipTests.VerifyObjectIsSpawnedOnClient GetClientInstance(ulong clientId)
Parameters
Type | Name | Description |
---|---|---|
ulong | clientId |
Returns
Type | Description |
---|---|
Network |
GetClientsThatSpawnedThisPrefab()
Declaration
public static List<ulong> GetClientsThatSpawnedThisPrefab()
Returns
OnGainedOwnership()
Invoked on both the server and the local client of the owner when Network
Declaration
public override void OnGainedOwnership()
Overrides
OnLostOwnership()
Invoked on the local client when it loses ownership of the associated Network
Declaration
public override void OnLostOwnership()
Overrides
OnNetworkDespawn()
Gets called when the Network
Declaration
public override void OnNetworkDespawn()
Overrides
OnNetworkSpawn()
Gets called when the Network
Declaration
public override void OnNetworkSpawn()
Overrides
ResetObjectTable()
Declaration
public static void ResetObjectTable()