docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UnityAgentsException

    Contains exceptions specific to ML-Agents.

    Inheritance
    object
    Exception
    UnityAgentsException
    Implements
    ISerializable
    Inherited Members
    Exception.GetBaseException()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.ToString()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    Exception.SerializeObjectState
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.MLAgents
    Assembly: Unity.ML-Agents.dll
    Syntax
    [Serializable]
    public class UnityAgentsException : Exception, ISerializable

    Constructors

    UnityAgentsException(SerializationInfo, StreamingContext)

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

    Declaration
    protected UnityAgentsException(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    SerializationInfo info

    Data for serializing/de-serializing

    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

    Implements

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