From 133b8b12274000c2578cb33ec9a495c88bafa1b8 Mon Sep 17 00:00:00 2001 From: yasirkula Date: Tue, 6 Jul 2021 17:49:31 +0300 Subject: [PATCH] Fixed small text issue on 2019.1 and 2019.2 (some devices might not have been affected by this issue) --- Plugins/AssetUsageDetector/Editor/Utilities.cs | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Plugins/AssetUsageDetector/Editor/Utilities.cs b/Plugins/AssetUsageDetector/Editor/Utilities.cs index 6bf5222..bc330a0 100644 --- a/Plugins/AssetUsageDetector/Editor/Utilities.cs +++ b/Plugins/AssetUsageDetector/Editor/Utilities.cs @@ -88,7 +88,11 @@ namespace AssetUsageDetectorNamespace m_boxGUIStyle.focused.textColor = textColor; m_boxGUIStyle.active.textColor = textColor; +#if !UNITY_2019_1_OR_NEWER || UNITY_2019_3_OR_NEWER + // On 2019.1 and 2019.2 versions, GUI.skin.button.fontSize returns 0 on some devices + // https://forum.unity.com/threads/asset-usage-detector-find-references-to-an-asset-object-open-source.408134/page-3#post-7285954 m_boxGUIStyle.fontSize = ( m_boxGUIStyle.fontSize + GUI.skin.button.fontSize ) / 2; +#endif } return m_boxGUIStyle; diff --git a/package.json b/package.json index a0b36c9..f76afa5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "com.yasirkula.assetusagedetector", "displayName": "Asset Usage Detector", - "version": "1.9.5", + "version": "1.9.6", "documentationUrl": "https://github.com/yasirkula/UnityAssetUsageDetector", "changelogUrl": "https://github.com/yasirkula/UnityAssetUsageDetector/releases", "licensesUrl": "https://github.com/yasirkula/UnityAssetUsageDetector/blob/master/LICENSE.txt",