Class BehaviorParameters
A component for setting an Agent instance's behavior and brain properties.
Inherited Members
Namespace: Unity.MLAgents.Policies
Assembly: solution.dll
Syntax
[AddComponentMenu("ML Agents/Behavior Parameters", 0)]
public class BehaviorParameters : MonoBehaviour
Remarks
At runtime, this component generates the agent's policy objects according to the settings you specified in the Editor.
Fields
| Name | Description |
|---|---|
| TeamId | The team ID for this behavior. |
Properties
| Name | Description |
|---|---|
| BehaviorName | The name of this behavior, which is used as a base name. See FullyQualifiedBehaviorName for the full name. This should not be set at runtime; use Agent.SetModel(string,Model,Policies.InferenceDevice) to set it instead. |
| BehaviorType | The BehaviorType for the Agent. |
| BrainParameters | The associated BrainParameters for this behavior. |
| DeterministicInference | Whether to select actions deterministically during inference from the provided neural network. |
| FullyQualifiedBehaviorName | Returns the behavior name, concatenated with any other metadata (i.e. team id). |
| InferenceDevice | How inference is performed for this Agent's model. This should not be set at runtime; use Agent.SetModel(string,Model,Policies.InferenceDevice) to set it instead. |
| Model | The neural network model used when in inference mode. This should not be set at runtime; use Agent.SetModel(string,Model,Policies.InferenceDevice) to set it instead. |
| ObservableAttributeHandling | Determines how the Agent class is searched for ObservableAttributes. |
| UseChildActuators | Whether or not to use all the actuator components attached to child GameObjects of the agent. Note that changing this after the Agent has been initialized will not have any effect. |
| UseChildSensors | Whether or not to use all the sensor components attached to child GameObjects of the agent. Note that changing this after the Agent has been initialized will not have any effect. |
Methods
| Name | Description |
|---|---|
| IsInHeuristicMode() | Query the behavior parameters in order to see if the Agent is running in Heuristic Mode. |