您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
34 行
1.0 KiB
34 行
1.0 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace UnityEngine.Perception.GroundTruth
|
|
{
|
|
/// <summary>
|
|
/// Label to designate a custom joint/keypoint. These are needed to add body
|
|
/// parts to a humanoid model that are not contained in its <see cref="Animator"/> <see cref="Avatar"/>
|
|
/// </summary>
|
|
public class JointLabel : MonoBehaviour
|
|
{
|
|
/// <summary>
|
|
/// Maps this joint to a joint in a <see cref="KeyPointTemplate"/>
|
|
/// </summary>
|
|
[Serializable]
|
|
public class TemplateData
|
|
{
|
|
/// <summary>
|
|
/// The <see cref="KeyPointTemplate"/> that defines this joint.
|
|
/// </summary>
|
|
public KeyPointTemplate template;
|
|
/// <summary>
|
|
/// The name of the joint.
|
|
/// </summary>
|
|
public string label;
|
|
};
|
|
|
|
/// <summary>
|
|
/// List of all of the templates that this joint can be mapped to.
|
|
/// </summary>
|
|
public List<TemplateData> templateInformation;
|
|
}
|
|
}
|