From d2a5246d5cc4a47da90297fce6d1ddd94b92af25 Mon Sep 17 00:00:00 2001 From: Jamie Brynes Date: Thu, 27 Aug 2020 18:01:29 +0100 Subject: [PATCH] Remove outline around component info button in Worker Inspector (#1468) --- CHANGELOG.md | 1 + .../io.improbable.gdk.debug/WorkerInspector/EntityListData.cs | 2 +- .../WorkerInspector/Templates/WorkerInspectorWindow.uss | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79ab56307d..e2d1c55c82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ - Migrated launch configurations to latest game templates. [#1457](https://github.com/spatialos/gdk-for-unity/pull/1457) - Multithreaded component serialization through `SystemBase` jobs. [#1454](https://github.com/spatialos/gdk-for-unity/pull/1454) - Upgrade Unity Burst to 1.3.5. [#1467](https://github.com/spatialos/gdk-for-unity/pull/1467) +- Removed outline and background around component info button in the Worker Inspector. [#1468](https://github.com/spatialos/gdk-for-unity/pull/1468) ### Fixed diff --git a/workers/unity/Packages/io.improbable.gdk.debug/WorkerInspector/EntityListData.cs b/workers/unity/Packages/io.improbable.gdk.debug/WorkerInspector/EntityListData.cs index e32cfd9c4c..87e5906461 100644 --- a/workers/unity/Packages/io.improbable.gdk.debug/WorkerInspector/EntityListData.cs +++ b/workers/unity/Packages/io.improbable.gdk.debug/WorkerInspector/EntityListData.cs @@ -42,7 +42,7 @@ public void SetNewWorld(World newWorld) fullData.Clear(); FilteredData.Clear(); - if (query != default) + if (query != default && world.IsCreated) { query.Dispose(); } diff --git a/workers/unity/Packages/io.improbable.gdk.debug/WorkerInspector/Templates/WorkerInspectorWindow.uss b/workers/unity/Packages/io.improbable.gdk.debug/WorkerInspector/Templates/WorkerInspectorWindow.uss index 5ba06fcf07..df973aead9 100644 --- a/workers/unity/Packages/io.improbable.gdk.debug/WorkerInspector/Templates/WorkerInspectorWindow.uss +++ b/workers/unity/Packages/io.improbable.gdk.debug/WorkerInspector/Templates/WorkerInspectorWindow.uss @@ -91,6 +91,8 @@ align-self: center; margin-right: 10px; margin-left: 10px; + border-width: 0; + background-color: rgba(0, 0, 0, 0); } .component-foldout .component-info-container {