浏览代码

Making VectorActionSize and VectorActionSpaceType internal (#5214)

Made sure the editor does not complain;
/check-for-ModelOverriders
GitHub 3 年前
当前提交
6d1b42be
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 8
      com.unity.ml-agents/Runtime/Policies/BrainParameters.cs

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


/// This is deprecated. Agents can now use both continuous and discrete actions together.
/// </summary>
[Obsolete("Continuous and discrete actions on the same Agent are now supported; see ActionSpec.")]
public enum SpaceType
internal enum SpaceType
{
/// <summary>
/// Discrete action space: a fixed number of options are available.

/// </value>
[Obsolete("VectorActionSize has been deprecated, please use ActionSpec instead.")]
[FormerlySerializedAs("vectorActionSize")]
public int[] VectorActionSize = new[] { 1 };
internal int[] VectorActionSize = new[] { 1 };
/// <summary>
/// The list of strings describing what the actions correspond to.

/// </summary>
[Obsolete("VectorActionSpaceType has been deprecated, please use ActionSpec instead.")]
[FormerlySerializedAs("vectorActionSpaceType")]
public SpaceType VectorActionSpaceType = SpaceType.Discrete;
internal SpaceType VectorActionSpaceType = SpaceType.Discrete;
[SerializeField]
[HideInInspector]

}
/// <summary>
/// Propogate ActionSpec fields from deprecated fields
/// Propagate ActionSpec fields from deprecated fields
/// </summary>
private void UpdateToActionSpec()
{

正在加载...
取消
保存