|
override void | DrawSelf (Vector2 relativeMousePosition) |
| Draws the control, but not its children.
|
|
override void | DrawChildren (Vector2 relativeMousePosition) |
| Draws the children, taking into account key/controller navigation if enabled.
|
|
override void | Awake () |
|
virtual void | Start () |
|
void | UseLocalizedText (LocalizedTextTable localizedText) |
|
void | ApplyAlphaToGUIColor () |
|
void | RestoreGUIColor () |
|
virtual void | SetFormattedText (FormattedText formattedText) |
| Sets the control's text and formatting.
|
|
void | SetUnformattedText (string text) |
| Sets the control's text and formatting using just raw text.
|
|
override void | UpdateLayoutSelf () |
| Updates the control's layout but not its children.
|
|
override void | AutoSizeSelf () |
| Auto-sizes the control according to the autoSize settings.
|
|
void | PlaySound (AudioClip audioClip) |
| Plays an audio clip.
|
|
virtual void | OnEnable () |
| Checks if the control needs to enable the first child for key/controller navigation.
|
|
void | Draw (Vector2 relativeMousePosition) |
| Draw the control and its children.
|
|
virtual void | Update () |
| If navigation is enabled, check if the selection button was pressed.
|
|
virtual void | Refresh (Vector2 windowSize) |
| Marks a control as needing to update its layout.
|
|
virtual void | Refresh () |
|
virtual void | UpdateLayout () |
| Updates the layout (size, position, formatting, etc.) of the control and its children.
|
|
|
override GUIStyle | DefaultGUIStyle [get] |
| Gets the default GUI style to use for this type of control.
|
|
float | Alpha [get, set] |
| Gets or sets the alpha (transparency) value.
|
|
bool | HasAlpha [get] |
| Gets a value indicating whether this instance has an alpha that isn't fully opaque.
|
|
virtual GUIStyle | DefaultGUIStyle [get] |
| Gets the default GUI style to use for this type of control.
|
|
GUIStyle | GuiStyle [get, set] |
| The current GUI style.
|
|
Rect | rect [get, set] |
| The pixel rect represented by scaledRect.
|
|
Vector2 | Offset [get, set] |
| Gets or sets the offset to apply to the screen rect for this control; useful for manual repositioning outside the normal GUI control system.
|
|
List< GUIControl > | Children [get] |
| The child controls.
|
|
bool | NeedToUpdateLayout [get, set] |
| When true , the control needs to update its style, size, position, etc.
|
|
Vector2 | WindowSize [get, set] |
| The size of the window most recently passed to Refresh().
|
|
bool | IsNavigationEnabled [get] |
| Gets a value indicating whether keyboard/controller navigation is enabled.
|
|
string | FullName [get] |
| Gets the full name of the GameObject, used to focus the control when using keyboard/controller navigation.
|
|
Vector2 | dRect [get, set] |
| Gets or sets dRect, which offsets the rect when the parent window isn't clipping.
|
|
A GUI control that implements GUI.Window, a draggable window.