Beispiel #1
0
 /// <summary>
 /// Creates a new toggle button with the specified label.
 /// </summary>
 /// <param name="content">Content to display on the button.</param>
 /// <param name="toggleGroup">Optional toggle group that is used for grouping multiple toggle buttons
 ///                           together. </param>
 /// <param name="style">Optional style to use for the element. Style controls the look of the element, as well as
 ///                     default layout options. Style will be retrieved from the active GUISkin. If not specified
 ///                     default element style is used.</param>
 /// <param name="options">Options that allow you to control how is the element positioned and sized. This will
 ///                       override any similar options set by style.</param>
 public GUIToggle(GUIContent content, GUIToggleGroup toggleGroup, string style, params GUIOption[] options)
 {
     Internal_CreateInstance(this, ref content, toggleGroup, style, options);
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new toggle button with the specified label.
 /// </summary>
 /// <param name="content">Content to display on the button.</param>
 /// <param name="toggleGroup">Optional toggle group that is used for grouping multiple toggle buttons
 ///                           together.</param>
 /// <param name="style">Optional style to use for the element. Style controls the look of the element, as well as
 ///                     default layout options. Style will be retrieved from the active GUISkin. If not specified
 ///                     default element style is used.</param>
 public GUIToggle(GUIContent content, GUIToggleGroup toggleGroup, string style)
 {
     Internal_CreateInstance(this, ref content, toggleGroup, style, new GUIOption[0]);
 }
Beispiel #3
0
 private static extern void Internal_CreateInstance(GUIToggle instance, ref GUIContent content,
                                                    GUIToggleGroup toggleGroup, string style, GUIOption[] options);
Beispiel #4
0
 private static extern void Internal_CreateInstance(GUIToggleGroup instance, bool allowAllOff);