button.changeStateOnClick = false没生效
不知道使用姿势有什么问题。。
ItemRenderer(int index, GObject obj){
GButton button = obj.asButton;
button.changeStateOnClick = false;
}
list.onClickItem.Add((EventContext context) =>{
GButton button = (GButton)context.data;
Debug.Log(cardList.GetChildAt(0).asButton.selected);
Debug.Log(cardList.GetChildAt(1).asButton.selected);
});
ItemRenderer(int index, GObject obj){
GButton button = obj.asButton;
button.changeStateOnClick = false;
}
list.onClickItem.Add((EventContext context) =>{
GButton button = (GButton)context.data;
Debug.Log(cardList.GetChildAt(0).asButton.selected);
Debug.Log(cardList.GetChildAt(1).asButton.selected);
});
没有找到相关结果
已邀请:
0 个回复