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