docs.unity3d.com
    Show / Hide Table of Contents

    Class SideChannelsManager

    Collection of static utilities for managing the registering/unregistering of Unity.MLAgents.SideChannels and the sending/receiving of messages for all the channels.

    Inheritance
    Object
    SideChannelsManager
    Namespace: Unity.MLAgents.SideChannels
    Syntax
    public static class SideChannelsManager : object

    Methods

    RegisterSideChannel(SideChannel)

    Register a side channel to begin sending and receiving messages. This method is available for environments that have custom side channels. All built-in side channels within the ML-Agents Toolkit are managed internally and do not need to be explicitly registered/unregistered. A side channel may only be registered once.

    Declaration
    public static void RegisterSideChannel(SideChannel sideChannel)
    Parameters
    Type Name Description
    SideChannel sideChannel

    The side channel to register.

    UnregisterSideChannel(SideChannel)

    Unregister a side channel to stop sending and receiving messages. This method is available for environments that have custom side channels. All built-in side channels within the ML-Agents Toolkit are managed internally and do not need to be explicitly registered/unregistered. Unregistering a side channel that has already been unregistered (or never registered in the first place) has no negative side effects. Note that unregistering a side channel may not stop the Python side from sending messages, but it does mean that sent messages with not result in a call to OnMessageReceived(IncomingMessage). Furthermore, those messages will not be buffered and will, in essence, be lost.

    Declaration
    public static void UnregisterSideChannel(SideChannel sideChannel)
    Parameters
    Type Name Description
    SideChannel sideChannel

    The side channel to unregister.

    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