Class RpcTests.RpcTestNB
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
Namespace: Unity.Netcode.RuntimeTests
Syntax
public class RpcTestNB : NetworkBehaviour
Methods
MyClientRpc()
Declaration
public void MyClientRpc()
MyServerRpc(UInt64, ServerRpcParams)
Declaration
public void MyServerRpc(ulong clientId, ServerRpcParams param = default(ServerRpcParams))
Parameters
Type | Name | Description |
---|---|---|
UInt64 | clientId | |
ServerRpcParams | param |
MyTypedServerRpc(Vector3, Vector3[], FixedString32Bytes)
Declaration
public void MyTypedServerRpc(Vector3 param1, Vector3[] param2, FixedString32Bytes param4)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | param1 | |
Vector3[] | param2 | |
FixedString32Bytes | param4 |
Events
OnClient_Rpc
Declaration
public event Action OnClient_Rpc
Event Type
Type | Description |
---|---|
Action |
OnServer_Rpc
Declaration
public event Action<ulong, ServerRpcParams> OnServer_Rpc
Event Type
Type | Description |
---|---|
Action<UInt64, ServerRpcParams> |
OnTypedServer_Rpc
Declaration
public event Action<Vector3, Vector3[], FixedString32Bytes> OnTypedServer_Rpc
Event Type
Type | Description |
---|---|
Action<Vector3, Vector3[], FixedString32Bytes> |