Exemplo n.º 1
0
    public void SetIcon(string iconName)
    {
        if (ezGuiRoot == null)
        {
            return;
        }

        if (iconName == "")
        {
            ezGuiRoot.SetTexture(orgTexture);
        }
        else
        {
            Texture2D icon = IconManager.Instance.GetIcon(iconName);
            ezGuiRoot.SetTexture(icon);
            ezGuiRoot.SetUVs(new Rect(0, 0, 1, 1));
        }
    }