docs.unity3d.com
    Show / Hide Table of Contents

    Class RpcSystem

    Inheritance
    System.Object
    RpcSystem
    Namespace: Unity.NetCode
    Syntax
    [UpdateInGroup(typeof(ClientAndServerSimulationSystemGroup))]
    public class RpcSystem : JobComponentSystem

    Methods

    CalculateVersionHash()

    Declaration
    public ulong CalculateVersionHash()
    Returns
    Type Description
    System.UInt64

    GetRpcQueue<T>()

    Declaration
    public RpcQueue<T> GetRpcQueue<T>()
        where T : struct, IRpcCommand
    Returns
    Type Description
    RpcQueue<T>
    Type Parameters
    Name Description
    T

    OnCreate()

    Declaration
    protected override void OnCreate()

    OnDestroy()

    Declaration
    protected override void OnDestroy()

    OnUpdate(JobHandle)

    Declaration
    protected override JobHandle OnUpdate(JobHandle inputDeps)
    Parameters
    Type Name Description
    JobHandle inputDeps
    Returns
    Type Description
    JobHandle

    RegisterRpc(ComponentType, PortableFunctionPointer<RpcExecutor.ExecuteDelegate>)

    Declaration
    public void RegisterRpc(ComponentType type, PortableFunctionPointer<RpcExecutor.ExecuteDelegate> exec)
    Parameters
    Type Name Description
    ComponentType type
    PortableFunctionPointer<RpcExecutor.ExecuteDelegate> exec

    RegisterRpc<T>()

    Declaration
    public void RegisterRpc<T>()
        where T : struct, IRpcCommand
    Type Parameters
    Name Description
    T

    SendProtocolVersion(DynamicBuffer<OutgoingRpcDataStreamBufferComponent>, NetworkProtocolVersion)

    Declaration
    public static void SendProtocolVersion(DynamicBuffer<OutgoingRpcDataStreamBufferComponent> buffer, NetworkProtocolVersion version)
    Parameters
    Type Name Description
    DynamicBuffer<OutgoingRpcDataStreamBufferComponent> buffer
    NetworkProtocolVersion version
    Back to top
    Copyright © 2025 Unity Technologies
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 02 April 2025