您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
24 行
865 B
24 行
865 B
using UnityEngine;
|
|
using UnityEngine.Perception.GroundTruth;
|
|
|
|
namespace UnityEditor.Perception.GroundTruth
|
|
{
|
|
[CustomEditor(typeof(BoundingBoxLabeler))]
|
|
public class BoundingBoxLabelerEditor : Editor
|
|
{
|
|
public override void OnInspectorGUI()
|
|
{
|
|
// base.OnInspectorGUI();
|
|
// return;
|
|
EditorGUILayout.PropertyField(this.serializedObject.FindProperty(nameof(BoundingBoxLabeler.annotationId)));
|
|
var serializedProperty = this.serializedObject.FindProperty(nameof(BoundingBoxLabeler.labelingConfiguration));
|
|
|
|
if (serializedProperty.objectReferenceValue != null)
|
|
{
|
|
EditorGUILayout.Separator();
|
|
var editor = Editor.CreateEditor(serializedProperty.objectReferenceValue);
|
|
editor.OnInspectorGUI();
|
|
}
|
|
}
|
|
}
|
|
}
|