docs.unity3d.com
    Show / Hide Table of Contents

    Class PlayerDataObject

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

    Constructors

    PlayerDataObject(PlayerDataObject.VisibilityOptions, String)

    Custom data property for a player.

    Declaration
    [Preserve]
    public PlayerDataObject(PlayerDataObject.VisibilityOptions visibility, string value = null)
    Parameters
    Type Name Description
    PlayerDataObject.VisibilityOptions visibility

    Indicates for whom the property should be visible. If public, the property will be visible to everyone and will be included in query results. If member, the data will only be visible to users who are members of the lobby (i.e. those who have successfully joined). If private, the metadata will only be visible to the player.

    String value

    The value of the custom property. This property can be set to null or an empty string.

    Properties

    Value

    The value of the custom property. This property can be set to null or an empty string.

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

    Visibility

    Indicates for whom the property should be visible. If public, the property will be visible to everyone and will be included in query results. If member, the data will only be visible to users who are members of the lobby (i.e. those who have successfully joined). If private, the metadata will only be visible to the player.

    Declaration
    [Preserve]
    public PlayerDataObject.VisibilityOptions Visibility { get; }
    Property Value
    Type Description
    PlayerDataObject.VisibilityOptions
    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