Hi, I’m new to nGUI (2.7), I’ll explain shortly what I’m doing: I’m using a UIButton with UICheckbox script attached to make it stay selected when pressed. Another button has the duty to disable this button selected returning it to its initial state. In order to do this I created a script but the checkbox button doesn’t return to its initial state (the checkmark sprite still active) despite the value isChecked it return false, can someone help me?
Below you can see the script that I used, thanks in advance!
public void checkboxInitialStyle (){
UICheckbox checkbox = GameObject.Find("PressedButton").GetComponent<UICheckbox>();
if (checkbox != null) {
checkbox.isChecked = false;
}
}