docs.unity.cn
    Show / Hide Table of Contents

    Class UnityAgentsException

    Contains exceptions specific to ML-Agents.

    Inheritance
    Object
    UnityAgentsException
    Namespace: Unity.MLAgents
    Syntax
    public class UnityAgentsException : Exception

    Constructors

    UnityAgentsException(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)

    A constructor is needed for serialization when an exception propagates from a remoting server to the client.

    Declaration
    protected UnityAgentsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
    Parameters
    Type Name Description
    System.Runtime.Serialization.SerializationInfo info

    Data for serializing/de-serializing

    System.Runtime.Serialization.StreamingContext context

    Describes the source and destination of the serialized stream

    UnityAgentsException(String)

    When a UnityAgentsException is called, the timeScale is set to 0. The simulation will end since no steps will be taken.

    Declaration
    public UnityAgentsException(string message)
    Parameters
    Type Name Description
    String message

    The exception message

    Back to top Copyright © 2021 Unity Technologies
    Generated by DocFX
    on Monday, November 8, 2021
    Terms of use