MainMenuGUI中建立button giftsbtn11.;
ColorBlock cb = new ColorBlock();
cb.normalColor = Color.gray;
cb.highlightedColor = Color.green;
cb.pressedColor = Color.blue;
cb.disabledColor = Color.black;
MainMenuGUI.instance.giftsbtn11.colors = cb;
MainMenuGUI中建立button giftsbtn11.;
ColorBlock cb = new ColorBlock();
cb.normalColor = Color.gray;
cb.highlightedColor = Color.green;
cb.pressedColor = Color.blue;
cb.disabledColor = Color.black;
MainMenuGUI.instance.giftsbtn11.colors = cb;
本文标题:UNITY 代码修改button的颜色
本文链接:https://www.haomeiwen.com/subject/molkextx.html
网友评论