Hello - I have been working at this for about a week now and thought it was time to ask. I have several radio or toggle buttons that I need to set up.
p
rivate var toggleTxt : boolean = false;
private var highBloodPress : boolean = false;
private var diabetes : boolean = false
;
function OnGUI() successfully calls to a function called healthMenu() { which includes the following toggle buttons -
t
oggleTxt = GUI.Toggle(Rect(30, 180, 240, 100), toggleTxt, "High Cholesterol or Triglycerides" );
highBloodPress = GUI.Toggle(Rect(30, 220, 240, 100), highBloodPress, "High Blood Pressure" );
diabetes = GUI.Toggle(Rect(30, 260, 240, 100), diabetes, "Diabetes" );
right now I can not get them to toggle properly. The first “radio” button is clickable, but the rest are not. Sometimes the second and third “radio” button will toggle on-off the first? A selection grid is not feasible since I eventually want the sum of all the radio buttons (when all of them = true) to play a specific video
GUI.Box(Rect(60, 5, 160, 120), videoB);
videoB.loop = true;
videoB.Play();
Can someone please guide me towards a solution? As I mentioned previously I have been trying for ~ week and read through the forum(s) looking for an answer. Thanks