Class PlayerConnection | DOTS Runtime | 0.28.0-preview.40
docs.unity3d.com
    Show / Hide Table of Contents

    Class PlayerConnection

    Inheritance
    Object
    PlayerConnection
    Namespace: UnityEngine.Networking.PlayerConnection
    Syntax
    public class PlayerConnection

    Constructors

    PlayerConnection()

    Declaration
    public PlayerConnection()

    Properties

    instance

    Declaration
    public static PlayerConnection instance { get; }
    Property Value
    Type Description
    PlayerConnection

    Methods

    Register(Guid, UnityAction<MessageEventArgs>)

    Declaration
    public void Register(Guid messageId, UnityAction<MessageEventArgs> callback)
    Parameters
    Type Name Description
    Guid messageId
    UnityAction<MessageEventArgs> callback

    Send(Guid, Byte[])

    Declaration
    public void Send(Guid messageId, byte[] data)
    Parameters
    Type Name Description
    Guid messageId
    Byte[] data

    Unregister(Guid, UnityAction<MessageEventArgs>)

    Declaration
    public void Unregister(Guid messageId, UnityAction<MessageEventArgs> callback)
    Parameters
    Type Name Description
    Guid messageId
    UnityAction<MessageEventArgs> callback
    In This Article
    • Constructors
      • PlayerConnection()
    • Properties
      • instance
    • Methods
      • Register(Guid, UnityAction<MessageEventArgs>)
      • Send(Guid, Byte[])
      • Unregister(Guid, UnityAction<MessageEventArgs>)
    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