docs.unity.cn
    Show / Hide Table of Contents

    Struct ReceiveRpcCommandRequest

    A component used to signal that an RPC has been received from a remote connection and should be processed.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.NetCode
    Syntax
    public struct ReceiveRpcCommandRequest : IComponentData, IQueryTypeParameter

    Fields

    SourceConnection

    The connection which sent the RPC being processed.

    Declaration
    public Entity SourceConnection
    Field Value
    Type Description
    Entity

    Properties

    IsConsumed

    ReceiveRpcCommandRequest has a Unity.NetCode.WarnAboutStaleRpcSystem which will log a warning if this value exceeds . Counts simulation frames. 0 is the simulation frame it is received on.

    Declaration
    public readonly bool IsConsumed { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Consume()

    ReceiveRpcCommandRequest has a Unity.NetCode.WarnAboutStaleRpcSystem which will log a warning if this value exceeds . Counts simulation frames. 0 is the simulation frame it is received on.

    Declaration
    public void Consume()
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023