docs.unity3d.com
Search Results for

    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.

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

    Fields

    Age

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

    Declaration
    public ushort Age
    Field Value
    Type Description
    ushort

    SourceConnection

    The connection which sent the RPC being processed.

    Declaration
    public Entity SourceConnection
    Field Value
    Type Description
    Entity

    Properties

    IsConsumed

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

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

    Methods

    Consume()

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

    Declaration
    public void Consume()

    Implements

    Unity.Entities.IComponentData
    Unity.Entities.IQueryTypeParameter
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)