docs.unity3d.com
    Show / Hide Table of Contents

    Struct ClientRpcSendParams

    Client-Side RPC The send parameters, when sending client RPCs, provides you wil the ability to target specific clients as a managed or unmanaged list: TargetClientIds and TargetClientIdsNativeArray

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Netcode
    Syntax
    public struct ClientRpcSendParams

    Fields

    TargetClientIds

    IEnumerable version of target id list - use either this OR TargetClientIdsNativeArray Note: Even if you provide a value type such as NativeArray, enumerating it will cause boxing. If you want to avoid boxing, use TargetClientIdsNativeArray

    Declaration
    public IReadOnlyList<ulong> TargetClientIds
    Field Value
    Type Description
    IReadOnlyList<UInt64>

    TargetClientIdsNativeArray

    NativeArray version of target id list - use either this OR TargetClientIds This option avoids any GC allocations but is a bit trickier to use.

    Declaration
    public NativeArray<ulong>? TargetClientIdsNativeArray
    Field Value
    Type Description
    Nullable<NativeArray<UInt64>>
    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