From e0f7fad00e5c8877c5803ae24625c6a64591a8cc Mon Sep 17 00:00:00 2001 From: Sinai <49360850+sinai-dev@users.noreply.github.com> Date: Fri, 24 Dec 2021 15:17:35 +1100 Subject: [PATCH] Cleanup --- src/CacheObject/CacheObjectBase.cs | 5 +---- src/Inspectors/GameObjectWidgets/ComponentCell.cs | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/CacheObject/CacheObjectBase.cs b/src/CacheObject/CacheObjectBase.cs index 601a9a8..434affb 100644 --- a/src/CacheObject/CacheObjectBase.cs +++ b/src/CacheObject/CacheObjectBase.cs @@ -220,10 +220,7 @@ namespace UnityExplorer.CacheObject // string wants it trimmed to max 200 chars case ValueState.String: if (!LastValueWasNull) - { - string s = Value as string; - return $"\"{ToStringUtility.PruneString(s, 200, 5)}\""; - } + return $"\"{ToStringUtility.PruneString(Value as string, 200, 5)}\""; break; // try to prefix the count of the collection for lists and dicts diff --git a/src/Inspectors/GameObjectWidgets/ComponentCell.cs b/src/Inspectors/GameObjectWidgets/ComponentCell.cs index 4637dbf..be46923 100644 --- a/src/Inspectors/GameObjectWidgets/ComponentCell.cs +++ b/src/Inspectors/GameObjectWidgets/ComponentCell.cs @@ -34,7 +34,8 @@ namespace UnityExplorer.Inspectors var root = base.CreateContent(parent); // Add mask to button so text doesnt overlap on Close button - this.Button.Component.gameObject.AddComponent().showMaskGraphic = true; + //this.Button.Component.gameObject.AddComponent().showMaskGraphic = true; + this.Button.ButtonText.horizontalOverflow = HorizontalWrapMode.Wrap; // Behaviour toggle