Skip to content

Commit ee3d095

Browse files
author
Chris Elion
authored
Make editor extensions and inference utils internal (#3390)
* make our editor extensions internal * MLAgents.InferenceBrain.Utils too
1 parent 1d23994 commit ee3d095

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

com.unity.ml-agents/Editor/AgentEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This code is meant to modify the behavior of the inspector on Agent Components.
88
*/
99
[CustomEditor(typeof(Agent), true)]
1010
[CanEditMultipleObjects]
11-
public class AgentEditor : Editor
11+
internal class AgentEditor : Editor
1212
{
1313
public override void OnInspectorGUI()
1414
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This code is meant to modify the behavior of the inspector on Agent Components.
99
*/
1010
[CustomEditor(typeof(BehaviorParameters))]
1111
[CanEditMultipleObjects]
12-
public class BehaviorParametersEditor : Editor
12+
internal class BehaviorParametersEditor : Editor
1313
{
1414
const float k_TimeBetweenModelReloads = 2f;
1515
// Time since the last reload of the model

com.unity.ml-agents/Editor/BrainParametersDrawer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace MLAgents
88
/// Inspector.
99
/// </summary>
1010
[CustomPropertyDrawer(typeof(BrainParameters))]
11-
public class BrainParametersDrawer : PropertyDrawer
11+
internal class BrainParametersDrawer : PropertyDrawer
1212
{
1313
// The height of a line in the Unity Inspectors
1414
const float k_LineHeight = 17f;

com.unity.ml-agents/Editor/DemonstrationDrawer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/// </summary>
88
[CustomEditor(typeof(Demonstration))]
99
[CanEditMultipleObjects]
10-
public class DemonstrationEditor : Editor
10+
internal class DemonstrationEditor : Editor
1111
{
1212
SerializedProperty m_BrainParameters;
1313
SerializedProperty m_DemoMetaData;

com.unity.ml-agents/Editor/DemonstrationImporter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace MLAgents
1111
/// Asset Importer used to parse demonstration files.
1212
/// </summary>
1313
[ScriptedImporter(1, new[] {"demo"})]
14-
public class DemonstrationImporter : ScriptedImporter
14+
internal class DemonstrationImporter : ScriptedImporter
1515
{
1616
const string k_IconPath = "Assets/ML-Agents/Resources/DemoIcon.png";
1717

com.unity.ml-agents/Runtime/InferenceBrain/Utils/Multinomial.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace MLAgents.InferenceBrain.Utils
88
/// entry[i] = P(x \le i), NOT P(i - 1 \le x \lt i).
99
/// (\le stands for less than or equal to while \lt is strictly less than).
1010
/// </summary>
11-
public class Multinomial
11+
internal class Multinomial
1212
{
1313
readonly System.Random m_Random;
1414

com.unity.ml-agents/Runtime/InferenceBrain/Utils/RandomNormal.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace MLAgents.InferenceBrain.Utils
88
/// https://en.wikipedia.org/wiki/Marsaglia_polar_method
99
/// TODO: worth overriding System.Random instead of aggregating?
1010
/// </summary>
11-
public class RandomNormal
11+
internal class RandomNormal
1212
{
1313
readonly double m_Mean;
1414
readonly double m_Stddev;

0 commit comments

Comments
 (0)