浏览代码

Fixed template guid not being serialized

/main
Steven Borkman 4 年前
当前提交
5dceae4f
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2
      com.unity.perception/Runtime/GroundTruth/Labelers/KeyPointTemplate.cs
  2. 2
      com.unity.perception/Tests/Runtime/GroundTruthTests/KeyPointGroundTruthTests.cs

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


/// <summary>
/// The <see cref="Guid"/> of the template
/// </summary>
public Guid templateID;
public string templateID = Guid.NewGuid().ToString();
/// <summary>
/// The name of the template
/// </summary>

2
com.unity.perception/Tests/Runtime/GroundTruthTests/KeyPointGroundTruthTests.cs


};
var template = ScriptableObject.CreateInstance<KeyPointTemplate>();
template.templateID = guid;
template.templateID = guid.ToString();
template.templateName = label;
template.jointTexture = null;
template.skeletonTexture = null;

正在加载...
取消
保存