您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
31 行
994 B
31 行
994 B
using UnityEngine.Perception.GroundTruth;
|
|
using UnityEngine.UIElements;
|
|
|
|
namespace UnityEditor.Perception.GroundTruth.DatasetConsumer
|
|
{
|
|
[CustomEditor(typeof(DatasetCapture), true)]
|
|
public class DatasetCaptureEditor : Editor
|
|
{
|
|
DatasetCapture m_DatasetCapture;
|
|
SerializedObject m_SerializedObject;
|
|
VisualElement m_EndpointsPlaceholder;
|
|
VisualElement m_Root;
|
|
|
|
public override VisualElement CreateInspectorGUI()
|
|
{
|
|
#if false
|
|
m_DatasetCapture = (DatasetCapture)target;
|
|
m_SerializedObject = new SerializedObject(m_DatasetCapture);
|
|
m_Root = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(
|
|
$"{StaticData.uxmlDir}/DatasetCaptureElement.uxml").CloneTree();
|
|
|
|
m_EndpointsPlaceholder = m_Root.Q<VisualElement>("endpoint-list-placeholder");
|
|
|
|
// m_EndpointsPlaceholder.Add(new EndpointList());
|
|
|
|
return m_Root;
|
|
#endif
|
|
return null;
|
|
}
|
|
}
|
|
}
|