浏览代码

Adding BoundingBoxLabelerEditor.cs

/labeler_mock
Jon Hogins 4 年前
当前提交
3e181821
共有 2 个文件被更改,包括 27 次插入0 次删除
  1. 24
      com.unity.perception/Editor/GroundTruth/BoundingBoxLabelerEditor.cs
  2. 3
      com.unity.perception/Editor/GroundTruth/BoundingBoxLabelerEditor.cs.meta

24
com.unity.perception/Editor/GroundTruth/BoundingBoxLabelerEditor.cs


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();
}
}
}
}

3
com.unity.perception/Editor/GroundTruth/BoundingBoxLabelerEditor.cs.meta


fileFormatVersion: 2
guid: d114d25761d742d4806c0f9e2e498764
timeCreated: 1589407154
正在加载...
取消
保存