Skip to content

Commit

Permalink
Making VectorActionSize and VectorActionSpaceType internal (Unity-Tec…
Browse files Browse the repository at this point in the history
…hnologies#5214)

Made sure the editor does not complain;
  • Loading branch information
vincentpierre authored Apr 1, 2021
1 parent 272899a commit 1c7e64c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions com.unity.ml-agents/Runtime/Policies/BrainParameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Unity.MLAgents.Policies
/// 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.
Expand Down Expand Up @@ -81,7 +81,7 @@ public ActionSpec ActionSpec
/// </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.
Expand All @@ -94,7 +94,7 @@ public ActionSpec ActionSpec
/// </summary>
[Obsolete("VectorActionSpaceType has been deprecated, please use ActionSpec instead.")]
[FormerlySerializedAs("vectorActionSpaceType")]
public SpaceType VectorActionSpaceType = SpaceType.Discrete;
internal SpaceType VectorActionSpaceType = SpaceType.Discrete;

[SerializeField]
[HideInInspector]
Expand All @@ -121,7 +121,7 @@ public BrainParameters Clone()
}

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

0 comments on commit 1c7e64c

Please sign in to comment.