Class NetworkTransformOwnershipTests.VerifyObjectIsSpawnedOnClient
NetworkTransformOwnershipTests helper behaviour
Inheritance
NetworkTransformOwnershipTests.VerifyObjectIsSpawnedOnClient
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
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 |
---|---|
NetworkTransformOwnershipTests.VerifyObjectIsSpawnedOnClient |
GetClientsThatSpawnedThisPrefab()
Declaration
public static List<ulong> GetClientsThatSpawnedThisPrefab()
Returns
Type | Description |
---|---|
List<ulong> |
OnGainedOwnership()
Invoked on both the server and the local client of the owner when NetworkObject ownership is assigned.
Declaration
public override void OnGainedOwnership()
Overrides
OnLostOwnership()
Invoked on the local client when it loses ownership of the associated NetworkObject. This method is also invoked on the server when any client loses ownership.
Declaration
public override void OnLostOwnership()
Overrides
OnNetworkDespawn()
Gets called when the NetworkObject gets despawned. Is called both on the server and clients.
Declaration
public override void OnNetworkDespawn()
Overrides
OnNetworkSpawn()
Gets called when the NetworkObject gets spawned, message handlers are ready to be registered and the network is setup.
Declaration
public override void OnNetworkSpawn()
Overrides
ResetObjectTable()
Declaration
public static void ResetObjectTable()