浏览代码

added formerlyserializedas attribute for keypoints in templates

/main
Mohsen Kamalzadeh 4 年前
当前提交
49a0e68c
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1
      com.unity.perception/CHANGELOG.md
  2. 2
      com.unity.perception/Runtime/GroundTruth/Labelers/KeyPointTemplate.cs

1
com.unity.perception/CHANGELOG.md


All appearances of the term `KeyPoint` have been renamed to `Keypoint`. Therefore, the following steps will be required after upgrading to this version:
* If you have code that relies on any renamed types or names, alter your code to reflect the new names.
* If you are using custom `KeypointTemplate` assets besides the provided `CocoKeypointTemplate`, open those assets in a text editor and change the `keyPoints:` line to `keypoints:`, then save the file.
### Known Issues

2
com.unity.perception/Runtime/GroundTruth/Labelers/KeyPointTemplate.cs


using System;
using UnityEngine.Serialization;
namespace UnityEngine.Perception.GroundTruth
{

/// <summary>
/// Array of <see cref="KeypointDefinition"/> for the template.
/// </summary>
[FormerlySerializedAs("keyPoints")]
public KeypointDefinition[] keypoints;
/// <summary>
/// Array of the <see cref="SkeletonDefinition"/> for the template.

正在加载...
取消
保存