Class RpcSystem | Unity NetCode | 0.5.0-preview.5
docs.unity3d.com
    Show / Hide Table of Contents

    Class RpcSystem

    Inheritance
    Object
    ComponentSystemBase
    SystemBase
    RpcSystem
    Inherited Members
    SystemBase.CompleteDependency()
    SystemBase.Update()
    SystemBase.GetComponent<T>(Entity)
    SystemBase.SetComponent<T>(Entity, T)
    SystemBase.HasComponent<T>(Entity)
    SystemBase.GetComponentDataFromEntity<T>(Boolean)
    Unity.Entities.SystemBase.GetBuffer<T>(Unity.Entities.Entity)
    Unity.Entities.SystemBase.GetBufferFromEntity<T>(System.Boolean)
    Unity.Entities.SystemBase.OnCreateForCompiler()
    SystemBase.Dependency
    SystemBase.Entities
    SystemBase.Job
    ComponentSystemBase.OnStartRunning()
    ComponentSystemBase.OnStopRunning()
    ComponentSystemBase.ShouldRunSystem()
    Unity.Entities.ComponentSystemBase.GetComponentTypeHandle<T>(System.Boolean)
    Unity.Entities.ComponentSystemBase.GetDynamicComponentTypeHandle(Unity.Entities.ComponentType)
    Unity.Entities.ComponentSystemBase.GetBufferTypeHandle<T>(System.Boolean)
    Unity.Entities.ComponentSystemBase.GetSharedComponentTypeHandle<T>()
    Unity.Entities.ComponentSystemBase.GetEntityTypeHandle()
    ComponentSystemBase.RequireForUpdate(EntityQuery)
    ComponentSystemBase.RequireSingletonForUpdate<T>()
    ComponentSystemBase.HasSingleton<T>()
    ComponentSystemBase.GetSingleton<T>()
    ComponentSystemBase.SetSingleton<T>(T)
    ComponentSystemBase.GetSingletonEntity<T>()
    ComponentSystemBase.GetEntityQuery(ComponentType[])
    ComponentSystemBase.GetEntityQuery(NativeArray<ComponentType>)
    ComponentSystemBase.GetEntityQuery(EntityQueryDesc[])
    ComponentSystemBase.GetArchetypeChunkComponentType<T>(Boolean)
    ComponentSystemBase.GetArchetypeChunkComponentTypeDynamic(ComponentType)
    ComponentSystemBase.GetArchetypeChunkBufferType<T>(Boolean)
    ComponentSystemBase.GetArchetypeChunkSharedComponentType<T>()
    ComponentSystemBase.GetArchetypeChunkEntityType()
    ComponentSystemBase.Enabled
    ComponentSystemBase.EntityQueries
    ComponentSystemBase.GlobalSystemVersion
    ComponentSystemBase.LastSystemVersion
    ComponentSystemBase.EntityManager
    ComponentSystemBase.World
    ComponentSystemBase.Time
    Unity.Entities.ComponentSystemBase.ExecutingSystemType
    Namespace: Unity.NetCode
    Syntax
    public class RpcSystem : SystemBase

    Constructors

    RpcSystem()

    Declaration
    public RpcSystem()

    Fields

    DynamicAssemblyList

    Treat the set of assemblies loaded on the client / server as dynamic or different. This is required if assemblies containing ghost component serializers or RPC serializers are removed when building standalone. This property is only read during system creation, so it must be set from the ClientServerBootstrap.

    Declaration
    public static bool DynamicAssemblyList
    Field Value
    Type Description
    Boolean

    Methods

    CalculateVersionHash()

    Declaration
    public ulong CalculateVersionHash()
    Returns
    Type Description
    UInt64

    GetRpcQueue<TActionSerializer, TActionRequest>()

    Declaration
    public RpcQueue<TActionSerializer, TActionRequest> GetRpcQueue<TActionSerializer, TActionRequest>()
        where TActionSerializer : struct, IRpcCommandSerializer<TActionRequest> where TActionRequest : struct, IComponentData
    Returns
    Type Description
    RpcQueue<TActionSerializer, TActionRequest>
    Type Parameters
    Name Description
    TActionSerializer
    TActionRequest

    OnCreate()

    Declaration
    protected override void OnCreate()
    Overrides
    ComponentSystemBase.OnCreate()

    OnDestroy()

    Declaration
    protected override void OnDestroy()
    Overrides
    ComponentSystemBase.OnDestroy()

    OnUpdate()

    Declaration
    protected override void OnUpdate()
    Overrides
    SystemBase.OnUpdate()

    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<TActionSerializer, TActionRequest>()

    Declaration
    public void RegisterRpc<TActionSerializer, TActionRequest>()
        where TActionSerializer : struct, IRpcCommandSerializer<TActionRequest> where TActionRequest : struct, IComponentData
    Type Parameters
    Name Description
    TActionSerializer
    TActionRequest

    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 © 2023 Unity Technologies — Terms of use
    • 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 18 October 2023