this.GetComponent<Button>().enabled = false;//禁用按鈕 如果需要將按鈕變灰,則需要另外處理 最近才發現一個禁用和變灰的按鈕,這幾年的代碼我踏馬真是白寫了 this.GetComponent<Button>().interactable = false;//禁用和變灰
this.GetComponent<Button>().enabled = false;//禁用按鈕 如果需要將按鈕變灰,則需要另外處理 最近才發現一個禁用和變灰的按鈕,這幾年的代碼我踏馬真是白寫了 this.GetComponent<Button>().interactable = false;//禁用和變灰
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。