docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BrainParameters

    Holds information about the brain. It defines what are the inputs and outputs of the decision process.

    Inheritance
    object
    BrainParameters
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.MLAgents.Policies
    Assembly: Unity.ML-Agents.dll
    Syntax
    [Serializable]
    public class BrainParameters : ISerializationCallbackReceiver
    Remarks

    Set brain parameters for an Agent instance using the BehaviorParameters component attached to the agent's GameObject.

    Fields

    NumStackedVectorObservations

    Stacking refers to concatenating the observations across multiple frames. This field indicates the number of frames to concatenate across.

    Declaration
    [FormerlySerializedAs("numStackedVectorObservations")]
    [Range(1, 50)]
    public int NumStackedVectorObservations
    Field Value
    Type Description
    int

    VectorActionDescriptions

    The list of strings describing what the actions correspond to.

    Declaration
    [FormerlySerializedAs("vectorActionDescriptions")]
    public string[] VectorActionDescriptions
    Field Value
    Type Description
    string[]

    VectorObservationSize

    The number of the observations that are added in CollectObservations(VectorSensor)

    Declaration
    [FormerlySerializedAs("vectorObservationSize")]
    public int VectorObservationSize
    Field Value
    Type Description
    int

    The length of the vector containing observation values.

    Properties

    ActionSpec

    The specification of the Actions for the BrainParameters.

    Declaration
    public ActionSpec ActionSpec { get; set; }
    Property Value
    Type Description
    ActionSpec

    Methods

    Clone()

    Deep clones the BrainParameter object.

    Declaration
    public BrainParameters Clone()
    Returns
    Type Description
    BrainParameters

    A new BrainParameter object with the same values as the original.

    OnAfterDeserialize()

    Called by Unity immediately after deserializing this object.

    Declaration
    public void OnAfterDeserialize()

    OnBeforeSerialize()

    Called by Unity immediately before serializing this object.

    Declaration
    public void OnBeforeSerialize()

    Implements

    ISerializationCallbackReceiver
    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)