Class DeferredMessageTestRpcAndNetworkVariableComponent
Inheritance
DeferredMessageTestRpcAndNetworkVariableComponent
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 DeferredMessageTestRpcAndNetworkVariableComponent : NetworkBehaviour
Fields
ClientInstances
Declaration
public static readonly List<ulong> ClientInstances
Field Value
Type | Description |
---|---|
List<ulong> |
ClientRpcCalled
Declaration
public bool ClientRpcCalled
Field Value
Type | Description |
---|---|
bool |
TestNetworkVariable
Declaration
public NetworkVariable<int> TestNetworkVariable
Field Value
Type | Description |
---|---|
NetworkVariable<int> |
Methods
Awake()
Declaration
public void Awake()
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
SendTestClientRpc()
Declaration
[ClientRpc]
public void SendTestClientRpc()