Class GUISystem
Represents a system of GUI elements and controls.
Inherited Members
Namespace: UnityEditor.U2D.Path.GUIFramework
Assembly: Unity.2D.Path.Editor.dll
Syntax
public class GUISystem
Constructors
GUISystem(IGUIState)
Initializes and returns an instance of GUISystem
Declaration
public GUISystem(IGUIState guiState)
Parameters
Type | Name | Description |
---|---|---|
IGUIState | guiState | The current state of the custom editor. |
Methods
AddAction(GUIAction)
Adds an action to the internal list of actions.
Declaration
public void AddAction(GUIAction action)
Parameters
Type | Name | Description |
---|---|---|
GUIAction | action | The action to add. |
AddControl(Control)
Adds a control to the internal list of controls.
Declaration
public void AddControl(Control control)
Parameters
Type | Name | Description |
---|---|---|
Control | control | The control to add. |
OnGUI()
Calls the methods in its invocation list when Unity draws this GUISystems's GUI.
Declaration
public void OnGUI()
RemoveAction(GUIAction)
Removes an action from the internal list of actions.
Declaration
public void RemoveAction(GUIAction action)
Parameters
Type | Name | Description |
---|---|---|
GUIAction | action | The action to remove. |
RemoveControl(Control)
Removes a control from the internal list of controls.
Declaration
public void RemoveControl(Control control)
Parameters
Type | Name | Description |
---|---|---|
Control | control | The control to remove. |