From 5d7bc3f91566a5469a79e09728a5db05450b7900 Mon Sep 17 00:00:00 2001 From: Christopher Goy Date: Mon, 8 Mar 2021 15:57:14 -0800 Subject: [PATCH 1/2] Fix xml docs. --- .../Runtime/Policies/BehaviorParameters.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/com.unity.ml-agents/Runtime/Policies/BehaviorParameters.cs b/com.unity.ml-agents/Runtime/Policies/BehaviorParameters.cs index 6d0ef86e58..872fe631e2 100644 --- a/com.unity.ml-agents/Runtime/Policies/BehaviorParameters.cs +++ b/com.unity.ml-agents/Runtime/Policies/BehaviorParameters.cs @@ -74,9 +74,16 @@ public class BehaviorParameters : MonoBehaviour [HideInInspector, SerializeField] BrainParameters m_BrainParameters = new BrainParameters(); + /// + /// Delegate for receiving events about Policy Updates. + /// + /// Whether or not the current policy is running in heuristic mode. public delegate void PolicyUpdated(bool isInHeuristicMode); - internal event PolicyUpdated OnPolicyUpdated; + /// + /// Event that fires when an Agent's policy is updated. + /// + public event PolicyUpdated OnPolicyUpdated; /// /// The associated for this behavior. From d7bb115300c354291c8d8935227a90a43f6588d7 Mon Sep 17 00:00:00 2001 From: Christopher Goy Date: Mon, 8 Mar 2021 16:09:58 -0800 Subject: [PATCH 2/2] Fix xml docs. --- com.unity.ml-agents/Runtime/Policies/BehaviorParameters.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.unity.ml-agents/Runtime/Policies/BehaviorParameters.cs b/com.unity.ml-agents/Runtime/Policies/BehaviorParameters.cs index 872fe631e2..33a9089d75 100644 --- a/com.unity.ml-agents/Runtime/Policies/BehaviorParameters.cs +++ b/com.unity.ml-agents/Runtime/Policies/BehaviorParameters.cs @@ -83,7 +83,7 @@ public class BehaviorParameters : MonoBehaviour /// /// Event that fires when an Agent's policy is updated. /// - public event PolicyUpdated OnPolicyUpdated; + internal event PolicyUpdated OnPolicyUpdated; /// /// The associated for this behavior.