diff --git a/Assets/Scripts/UI/UITools.cs b/Assets/Scripts/UI/UITools.cs index f829a955..ff0635ce 100644 --- a/Assets/Scripts/UI/UITools.cs +++ b/Assets/Scripts/UI/UITools.cs @@ -58,7 +58,7 @@ namespace QFramework.Example { if (success) { - var texture2D = Utility.GetSprite(res.Asset as Texture2D); + icon.sprite = Utility.GetSprite(res.Asset as Texture2D); } }); Button btn = obj.GetComponent