浏览代码

Update ScenarioSerializer.cs

/0.9.0.preview.1_staging
Aryan Mann 3 年前
当前提交
17ed55d4
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
      com.unity.perception/Runtime/Randomization/Scenarios/Serialization/ScenarioSerializer.cs

3
com.unity.perception/Runtime/Randomization/Scenarios/Serialization/ScenarioSerializer.cs


var clamped = Mathf.Clamp((float)num, rangeAttribute.min, rangeAttribute.max);
field.SetValue(obj, Convert.ChangeType(clamped, field.FieldType));
}
else
field.SetValue(obj, Convert.ChangeType(readScalar.Item1, field.FieldType));
}
else
{

正在加载...
取消
保存