docs.unity3d.com
    Show / Hide Table of Contents

    Class PlayerUpdateRequest

    Inheritance
    Object
    PlayerUpdateRequest
    Namespace: Unity.Services.Lobbies.Models
    Syntax
    [Preserve]
    public class PlayerUpdateRequest

    Constructors

    PlayerUpdateRequest(String, Dictionary<String, PlayerDataObject>, String)

    The body of an Update Player Data request.

    Declaration
    [Preserve]
    public PlayerUpdateRequest(string connectionInfo = null, Dictionary<string, PlayerDataObject> data = null, string allocationId = null)
    Parameters
    Type Name Description
    String connectionInfo

    Connection information for connecting to a relay with this player.

    Dictionary<String, PlayerDataObject> data

    Custom game-specific properties to add, update, or remove from the player (e.g. role or skill). To remove an existing property, include it in data but set the property object to null. To update the value to null, set the value property of the object to null.

    String allocationId

    The allocationId from the Relay service which associates this player in this lobby with a persistent connection. When a disconnect notification is received, this value is used to identify the associated player in a lobby to mark them as disconnected.

    Properties

    AllocationId

    The allocationId from the Relay service which associates this player in this lobby with a persistent connection. When a disconnect notification is received, this value is used to identify the associated player in a lobby to mark them as disconnected.

    Declaration
    [Preserve]
    public string AllocationId { get; }
    Property Value
    Type Description
    String

    ConnectionInfo

    Connection information for connecting to a relay with this player.

    Declaration
    [Preserve]
    public string ConnectionInfo { get; }
    Property Value
    Type Description
    String

    Data

    Custom game-specific properties to add, update, or remove from the player (e.g. role or skill). To remove an existing property, include it in data but set the property object to null. To update the value to null, set the value property of the object to null.

    Declaration
    [Preserve]
    public JsonObject Data { get; }
    Property Value
    Type Description
    JsonObject
    Back to top
    Terms of use
    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