| UI/Core/ImageEx.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
UI/Core/ImageEx.cs
@@ -43,6 +43,8 @@ } } [SerializeField] string m_IconKey = string.Empty; bool inited = false; protected override void Awake() { @@ -54,6 +56,10 @@ this.material = this.canvasAddition == null ? MaterialUtility.GetDefaultSpriteGrayMaterial() : this.canvasAddition.spriteGrayMaterial; } if (!string.IsNullOrEmpty(m_IconKey)) { this.SetSprite(m_IconKey); } } }