docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SendDirectTextMessageAsync

    SendDirectTextMessageAsync(string, string, MessageOptions)

    Sends a text message to another logged in user.

    Declaration
    Task SendDirectTextMessageAsync(string playerId, string message, MessageOptions options = null)
    Parameters
    Type Name Description
    string playerId

    The playerId of the logged in user the message will be sent to.

    string message

    The text of the message to be sent.

    MessageOptions options

    An optional parameter for adding metadata to the message

    Returns
    Type Description
    Task

    Task for the operation

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)