浏览代码

Update to pre2

/develop/2.0-verified-pre
Christopher Goy 4 年前
当前提交
f1efdb46
共有 6 个文件被更改,包括 17 次插入17 次删除
  1. 6
      DevProject/Packages/packages-lock.json
  2. 2
      Project/Packages/packages-lock.json
  3. 2
      com.unity.ml-agents.extensions/package.json
  4. 18
      com.unity.ml-agents/Runtime/Academy.cs
  5. 4
      com.unity.ml-agents/package.json
  6. 2
      utils/validate_versions.py

6
DevProject/Packages/packages-lock.json


{
"dependencies": {
"com.unity.barracuda": {
"version": "1.4.0-preview",
"version": "2.0.0-pre.2",
"depth": 1,
"source": "registry",
"dependencies": {

"depth": 0,
"source": "local",
"dependencies": {
"com.unity.barracuda": "1.4.0-preview",
"com.unity.barracuda": "2.0.0-pre.2",
"com.unity.modules.imageconversion": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0"
}

"depth": 0,
"source": "local",
"dependencies": {
"com.unity.ml-agents": "2.0.0-pre.1",
"com.unity.ml-agents": "2.0.0-pre.2",
"com.unity.modules.physics": "1.0.0"
}
},

2
Project/Packages/packages-lock.json


"depth": 0,
"source": "local",
"dependencies": {
"com.unity.ml-agents": "2.0.0-pre.1",
"com.unity.ml-agents": "2.0.0-pre.2",
"com.unity.modules.physics": "1.0.0"
}
},

2
com.unity.ml-agents.extensions/package.json


"unity": "2019.4",
"description": "A source-only package for new features based on ML-Agents",
"dependencies": {
"com.unity.ml-agents": "2.0.0-pre.1",
"com.unity.ml-agents": "2.0.0-pre.2",
"com.unity.modules.physics": "1.0.0"
}
}

18
com.unity.ml-agents/Runtime/Academy.cs


/// Unity package version of com.unity.ml-agents.
/// This must match the version string in package.json and is checked in a unit test.
/// </summary>
internal const string k_PackageVersion = "2.0.0-pre.1";
internal const string k_PackageVersion = "2.0.0-pre.2";
const int k_EditorTrainingPort = 5004;

// This try-catch is because DontDestroyOnLoad cannot be used in Editor Tests
GameObject.DontDestroyOnLoad(m_StepperObject);
}
catch { }
catch {}
}
/// <summary>

void ResetActions()
{
DecideAction = () => { };
DestroyAction = () => { };
AgentPreStep = i => { };
AgentSendState = () => { };
AgentAct = () => { };
AgentForceReset = () => { };
OnEnvironmentReset = () => { };
DecideAction = () => {};
DestroyAction = () => {};
AgentPreStep = i => {};
AgentSendState = () => {};
AgentAct = () => {};
AgentForceReset = () => {};
OnEnvironmentReset = () => {};
}
static void OnQuitCommandReceived()

4
com.unity.ml-agents/package.json


{
"name": "com.unity.ml-agents",
"displayName": "ML Agents",
"version": "2.0.0-pre.1",
"version": "2.0.0-pre.2",
"com.unity.barracuda": "1.4.0-preview",
"com.unity.barracuda": "2.0.0-pre.2",
"com.unity.modules.imageconversion": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0"
}

2
utils/validate_versions.py


f.write(new_contents)
if csharp_version is not None:
package_version = f"{csharp_version}-pre.1"
package_version = f"{csharp_version}-pre.2"
if csharp_extensions_version is not None:
# since this has never been promoted we need to keep
# it in preview forever or CI will fail

正在加载...
取消
保存