[ Web Proxy ]
URL:
Viewing: https://docs.unity3d.com/ScriptReference/GUIUtility.html [Back]  [Original]

Unity - Scripting API: GUIUtility
Version: Unity 6.5 (6000.5)
    • Supported
    • Legacy
    LanguageEnglish
    • C#

    GUIUtility

    class in UnityEngine

    Suggest a change

    Success!

    Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

    Close

    Submission failed

    For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

    Close
    Your name Your email Suggestion* Submit suggestion

    Cancel

    Description

    Utility class for making new GUI controls.

    Unless you are creating your own GUI controls from scratch, you should not use these functions.

    Static Properties

    Property Description
    hasModalWindowA global property, which is true if a ModalWindow is being displayed, false otherwise.
    hotControlThe controlID of the current hot control.
    keyboardControlThe controlID of the control that has keyboard focus.
    systemCopyBufferGet access to the system-wide clipboard.

    Static Methods

    Method Description
    AlignRectToDeviceAlign a local space rectangle to the pixel grid.
    ExitGUIPuts the GUI in a state that will prevent all subsequent immediate mode GUI functions from evaluating for the remainder of the GUI loop by throwing an ExitGUIException.
    GetControlIDGet a unique ID for a control.
    GetStateObjectGet a state object from a controlID.
    GUIToScreenPointConvert a point from GUI position to screen space.
    GUIToScreenRectConvert a rect from GUI position to screen space.
    QueryStateObjectGet an existing state object from a controlID.
    RotateAroundPivotHelper function to rotate the GUI around a point.
    ScaleAroundPivotHelper function to scale the GUI around a point.
    ScreenToGUIPointConvert a point from screen space to GUI position.
    ScreenToGUIRectConvert a rect from screen space to GUI position.

    Web Proxy Viewer  |  New URL  |  Original Page