environment.sidechannel
Module sidechannel
Side channels are used to communicate data to Unity and are a feature of Unity MLAgents.
worldofbug
defines two useful, one for logging, and one for configuration.
Class UnityLogChannel
class UnityLogChannel(SideChannel)
Logging SideChannel, reads log messages from Unity and prints them to stdout.
Class UnityConfigChannel
class UnityConfigChannel(SideChannel)
Configuration SideChannels, sends config information to a Unity environment. For API details see: TODO
write
def write(msg)
Write to the side channel.
Arguments:
msg
str - message to write