diff --git a/TestProjects/PerceptionHDRP/Assets/SemanticSegmentationLabelingConfiguration.asset b/TestProjects/PerceptionHDRP/Assets/SemanticSegmentationLabelingConfiguration.asset index a7ba7ccdc..2aea15a22 100644 --- a/TestProjects/PerceptionHDRP/Assets/SemanticSegmentationLabelingConfiguration.asset +++ b/TestProjects/PerceptionHDRP/Assets/SemanticSegmentationLabelingConfiguration.asset @@ -21,3 +21,4 @@ MonoBehaviour: color: {r: 0, g: 1, b: 0.16973758, a: 1} - label: Terrain color: {r: 0.8207547, g: 0, b: 0.6646676, a: 1} + skyColor: {r: 0, g: 0, b: 0, a: 1} diff --git a/TestProjects/PerceptionURP/Assets/SemanticSegmentationLabelingConfiguration.asset b/TestProjects/PerceptionURP/Assets/SemanticSegmentationLabelingConfiguration.asset index a7ba7ccdc..2aea15a22 100644 --- a/TestProjects/PerceptionURP/Assets/SemanticSegmentationLabelingConfiguration.asset +++ b/TestProjects/PerceptionURP/Assets/SemanticSegmentationLabelingConfiguration.asset @@ -21,3 +21,4 @@ MonoBehaviour: color: {r: 0, g: 1, b: 0.16973758, a: 1} - label: Terrain color: {r: 0.8207547, g: 0, b: 0.6646676, a: 1} + skyColor: {r: 0, g: 0, b: 0, a: 1} diff --git a/TestProjects/PerceptionURP/Packages/packages-lock.json b/TestProjects/PerceptionURP/Packages/packages-lock.json index 8f8d5d7c4..320861758 100644 --- a/TestProjects/PerceptionURP/Packages/packages-lock.json +++ b/TestProjects/PerceptionURP/Packages/packages-lock.json @@ -81,7 +81,7 @@ "com.unity.collections": "0.9.0-preview.6", "com.unity.nuget.newtonsoft-json": "1.1.2", "com.unity.render-pipelines.core": "7.1.6", - "com.unity.simulation.capture": "0.0.10-preview.19", + "com.unity.simulation.capture": "0.0.10-preview.20", "com.unity.simulation.client": "0.0.10-preview.10", "com.unity.simulation.core": "0.0.10-preview.22" } @@ -115,7 +115,7 @@ "url": "https://packages.unity.com" }, "com.unity.simulation.capture": { - "version": "0.0.10-preview.19", + "version": "0.0.10-preview.20", "depth": 1, "source": "registry", "dependencies": { diff --git a/com.unity.perception/Editor/GroundTruth/IdLabelConfigEditor.cs b/com.unity.perception/Editor/GroundTruth/IdLabelConfigEditor.cs index a2583921b..8897024c9 100644 --- a/com.unity.perception/Editor/GroundTruth/IdLabelConfigEditor.cs +++ b/com.unity.perception/Editor/GroundTruth/IdLabelConfigEditor.cs @@ -37,6 +37,8 @@ protected override void InitUiExtended() m_StartingIdEnumField.SetEnabled(AutoAssign); + m_SkyColorUi.style.display = DisplayStyle.None; + AutoAssignIdsIfNeeded(); m_MoveDownButton.clicked += MoveSelectedItemDown; m_MoveUpButton.clicked += MoveSelectedItemUp; diff --git a/com.unity.perception/Editor/GroundTruth/LabelConfigEditor.cs b/com.unity.perception/Editor/GroundTruth/LabelConfigEditor.cs index 762c00e14..93d2a6f78 100644 --- a/com.unity.perception/Editor/GroundTruth/LabelConfigEditor.cs +++ b/com.unity.perception/Editor/GroundTruth/LabelConfigEditor.cs @@ -41,9 +41,13 @@ abstract class LabelConfigEditor : Editor where T : ILabelEntry protected Button m_MoveDownButton; protected VisualElement m_MoveButtons; protected VisualElement m_IdSpecificUi; + protected VisualElement m_SkyColorUi; protected EnumField m_StartingIdEnumField; protected Toggle m_AutoIdToggle; + protected ColorField m_SkyColorField; + protected Label m_SkyHexLabel; + public void OnEnable() { @@ -114,6 +118,9 @@ void InitUi() m_StartingIdEnumField = m_Root.Q("starting-id-dropdown"); m_AutoIdToggle = m_Root.Q("auto-id-toggle"); m_IdSpecificUi = m_Root.Q("id-specific-ui"); + m_SkyColorUi = m_Root.Q("sky-color-ui"); + m_SkyColorField = m_Root.Q("sky-color-value"); + m_SkyHexLabel = m_Root.Q