浏览代码

Updating UI strings for clarity.

/main
Jon Hogins 4 年前
当前提交
a7c2c3dc
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 4
      com.unity.perception/Editor/GroundTruth/LabelingConfigurationEditor.cs
  2. 2
      com.unity.perception/Runtime/GroundTruth/Labeling/StartingLabelId.cs

4
com.unity.perception/Editor/GroundTruth/LabelingConfigurationEditor.cs


var autoAssignIdsProperty = serializedObject.FindProperty(nameof(LabelingConfiguration.AutoAssignIds));
using (var change = new EditorGUI.ChangeCheckScope())
{
EditorGUILayout.PropertyField(autoAssignIdsProperty);
EditorGUILayout.PropertyField(autoAssignIdsProperty, new GUIContent("Auto Assign IDs"));
if (change.changed && autoAssignIdsProperty.boolValue)
AutoAssignIds();
}

using (var change = new EditorGUI.ChangeCheckScope())
{
var startingLabelIdProperty = serializedObject.FindProperty(nameof(LabelingConfiguration.StartingLabelId));
EditorGUILayout.PropertyField(startingLabelIdProperty);
EditorGUILayout.PropertyField(startingLabelIdProperty, new GUIContent("Starting Label ID"));
if (change.changed)
AutoAssignIds();
}

2
com.unity.perception/Runtime/GroundTruth/Labeling/StartingLabelId.cs


/// <summary>
/// Start label id assignment at 0
/// </summary>
[InspectorName("0")]
[InspectorName("1")]
One
}
}
正在加载...
取消
保存