浏览代码

remove group id

/develop/centralizedcritic/counterfact
Ruo-Ping Dong 4 年前
当前提交
2672dbc7
共有 2 个文件被更改,包括 1 次插入9 次删除
  1. 2
      com.unity.ml-agents/Editor/BehaviorParametersEditor.cs
  2. 8
      com.unity.ml-agents/Runtime/Policies/BehaviorParameters.cs

2
com.unity.ml-agents/Editor/BehaviorParametersEditor.cs


const string k_InferenceDeviceName = "m_InferenceDevice";
const string k_BehaviorTypeName = "m_BehaviorType";
const string k_TeamIdName = "TeamId";
const string k_GroupIdName = "GroupId";
const string k_UseChildSensorsName = "m_UseChildSensors";
const string k_ObservableAttributeHandlingName = "m_ObservableAttributeHandling";

}
needPolicyUpdate = needPolicyUpdate || EditorGUI.EndChangeCheck();
EditorGUILayout.PropertyField(so.FindProperty(k_GroupIdName));
EditorGUILayout.PropertyField(so.FindProperty(k_TeamIdName));
EditorGUI.BeginDisabledGroup(!EditorUtilities.CanUpdateModelProperties());
{

8
com.unity.ml-agents/Runtime/Policies/BehaviorParameters.cs


[HideInInspector, SerializeField, FormerlySerializedAs("m_TeamID")]
public int TeamId;
/// <summary>
/// The group ID for this behavior.
/// </summary>
[HideInInspector, SerializeField]
[Tooltip("Assign the same Group ID to all Agents in the same Area.")]
public int GroupId;
// TODO properties here instead of Agent
[FormerlySerializedAs("m_useChildSensors")]

/// </summary>
public string FullyQualifiedBehaviorName
{
get { return m_BehaviorName + "?team=" + TeamId + "&group=" + GroupId; }
get { return m_BehaviorName + "?team=" + TeamId; }
}
internal IPolicy GeneratePolicy(ActionSpec actionSpec, HeuristicPolicy.ActionGenerator heuristic)

正在加载...
取消
保存