浏览代码

[Monitor] center the monitor when not attached to a transform (#385)

/develop-generalizationTraining-TrainerController
GitHub 7 年前
当前提交
0c606f62
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      unity-environment/Assets/ML-Agents/Scripts/Monitor.cs

2
unity-environment/Assets/ML-Agents/Scripts/Monitor.cs


float paddingwidth = 10 * widthScaler;
float scale = 1f;
var origin = new Vector3(0, Screen.height);
var origin = new Vector3(Screen.width / 2 - keyPixelWidth, Screen.height);
if (!(target == canvas.transform))
{
Vector3 cam2obj = target.position - Camera.main.transform.position;

正在加载...
取消
保存