浏览代码

Release v0.6 bug bp copy (#1341)

* Fix fro BrainParameter copy between brains

* Removed useless imports
/develop-generalizationTraining-TrainerController
GitHub 6 年前
当前提交
12245deb
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 12
      UnitySDK/Assets/ML-Agents/Editor/BrainEditor.cs

12
UnitySDK/Assets/ML-Agents/Editor/BrainEditor.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine;
using UnityEditor;
using UnityEditor;
using System.Linq;
namespace MLAgents
{

if (brainToCopy != null)
{
brain.brainParameters = brainToCopy.brainParameters.Clone();
EditorUtility.SetDirty(brain);
AssetDatabase.SaveAssets();
return;
}
var serializedBrain = serializedObject;
serializedBrain.Update();

EditorGUILayout.LabelField("", GUI.skin.horizontalSlider);
}
}
}
}
正在加载...
取消
保存