docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class GUISystem

    Represents a system of GUI elements and controls.

    Inheritance
    object
    GUISystem
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)