Exemplo n.º 1
0
 protected void RadioButtons(RadioButtonSet buttons)
 {
     for (int i = 0; i < buttons.names.Count; i++)
     {
         if (RTEditorGUI.Toggle(buttons.values[i], buttons.names[i]))
         {
             buttons.SelectOption(i);
         }
         else
         {
             buttons.values[i] = false;
         }
     }
 }
Exemplo n.º 2
0
 protected void RadioButtonsVertical(RadioButtonSet buttons)
 {
     GUILayout.BeginVertical();
     for (int i = 0; i < buttons.names.Count; i++)
     {
         if (RTEditorGUI.Toggle(buttons.values[i], buttons.names[i]))
         {
             buttons.SelectOption(i);
         }
         else
         {
             buttons.values[i] = false;
         }
     }
     GUILayout.EndVertical();
 }