Toggle value change

45

Toggle value change -

public void valueChanged(Toggle t)
    {
        if (t.isOn) {
            t.GetComponentInChildren<Text> ().text = "Toggle is on";
        } else {
            t.GetComponentInChildren<Text> ().text = "Toggle is off";
        }
    }

Comments

Submit
0 Comments