docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CustomMessagingManager

    The manager class to manage custom messages, note that this is different from the NetworkManager custom messages. These are named and are much easier to use.

    Inheritance
    object
    CustomMessagingManager
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Netcode
    Assembly: solution.dll
    Syntax
    public class CustomMessagingManager

    Methods

    Name Description
    RegisterNamedMessageHandler(string, HandleNamedMessageDelegate)

    Registers a named message handler delegate.

    SendNamedMessage(string, IReadOnlyList<ulong>, FastBufferWriter, NetworkDelivery)

    Sends the named message

    SendNamedMessage(string, ulong, FastBufferWriter, NetworkDelivery)

    Sends a named message

    SendNamedMessageToAll(string, FastBufferWriter, NetworkDelivery)

    Sends a named message to all clients

    SendUnnamedMessage(IReadOnlyList<ulong>, FastBufferWriter, NetworkDelivery)

    Sends unnamed message to a list of clients

    SendUnnamedMessage(ulong, FastBufferWriter, NetworkDelivery)

    Sends a unnamed message to a specific client

    SendUnnamedMessageToAll(FastBufferWriter, NetworkDelivery)

    Sends unnamed message to all clients

    UnregisterNamedMessageHandler(string)

    Unregisters a named message handler.

    Events

    Name Description
    OnUnnamedMessage

    Event invoked when unnamed messages arrive

    In This Article
    Back to top
    Copyright © 2024 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)