浏览代码

Update com.unity.ml-agents/Runtime/Sensors/VectorSensor.cs

Co-authored-by: Chris Goy <christopherg@unity3d.com>
/goal-conditioning/sensors-3-pytest-fix
GitHub 4 年前
当前提交
f4c942a6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      com.unity.ml-agents/Runtime/Sensors/VectorSensor.cs

2
com.unity.ml-agents/Runtime/Sensors/VectorSensor.cs


/// <param name="name">Name of the sensor.</param>
public VectorSensor(int observationSize, string name = null, ObservationType observationType = ObservationType.Default)
{
if (name == null || name == "")
if (string.IsNullOrEmpty(name))
{
name = $"VectorSensor_size{observationSize}";
if (observationType != ObservationType.Default)

正在加载...
取消
保存