docs.unity3d.com
    Show / Hide Table of Contents

    Interface IGenericMessageHandler

    Namespace: Unity.Cloud.Presence
    Syntax
    public interface IGenericMessageHandler

    Properties

    IsReady

    Indicates if the message handler is ready to send and receive messages.

    Declaration
    bool IsReady { get; }
    Property Value
    Type Description
    Boolean

    True when the NetcodeService client is started, false otherwise.

    Methods

    SendGenericMessage(String)

    Sends a generic message.

    Declaration
    bool SendGenericMessage(string data)
    Parameters
    Type Name Description
    String data
    Returns
    Type Description
    Boolean

    true (Successful) or false (Unsuccessful)

    Events

    MessageReceived

    Indicates when a new message is received.

    Declaration
    event Action<ulong, string> MessageReceived
    Event Type
    Type Description
    Action<UInt64, String>

    Extension Methods

    GenericDataExtensions.SerializeToByteArray(Object)
    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