Skip to content

Commit 257bd05

Browse files
authored
(case 1255312) Conditionally use different namespace for ScriptedImporters (#4188)
* (case 1255312) Conditionally use different namespace for ScriptedImporters. * Add semi-colon. * Update barracuda dependency. * Update changelog. * Fix PR number.
1 parent 37a574d commit 257bd05

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

com.unity.ml-agents/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ and this project adheres to
1818
#### com.unity.ml-agents (C#)
1919
- `SideChannelsManager` was renamed to `SideChannelManager`. The old name is still supported, but deprecated. (#4137)
2020
- `RayPerceptionSensor.Perceive()` now additionally store the GameObject that was hit by the ray. (#4111)
21-
- The Barracuda dependency was upgraded to 1.0.0 (#4118)
21+
- The Barracuda dependency was upgraded to 1.0.1 (#4188)
2222
#### ml-agents / ml-agents-envs / gym-unity (Python)
2323
- Added new Google Colab notebooks to show how to use `UnityEnvironment'. (#4117)
2424

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
using Unity.MLAgents.CommunicatorObjects;
55
using UnityEditor;
66
using UnityEngine;
7+
#if UNITY_2020_2_OR_NEWER
8+
using UnityEditor.AssetImporters;
9+
#else
710
using UnityEditor.Experimental.AssetImporters;
11+
#endif
812
using Unity.MLAgents.Demonstrations;
913

1014
namespace Unity.MLAgents.Editor

com.unity.ml-agents/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"unity": "2018.4",
66
"description": "Use state-of-the-art machine learning to create intelligent character behaviors in any Unity environment (games, robotics, film, etc.).",
77
"dependencies": {
8-
"com.unity.barracuda": "1.0.0"
8+
"com.unity.barracuda": "1.0.1"
99
}
1010
}

0 commit comments

Comments
 (0)