class in UnityEditor
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
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
Miscellaneous helper stuff for EditorGUI.
|The width of the GUI area for the current EditorWindow or other view.
|Is a text field currently editing text?
|The minimum width in pixels reserved for the fields of Editor GUI controls.
|Is the Editor GUI is hierarchy mode?
|Is the user currently using the pro skin? (Read Only)
|The width in pixels reserved for labels of Editor GUI controls.
|The scale of GUI points relative to screen pixels for the current viewThis value is the number of screen pixels per point of interface space. For instance, 2.0 on retina displays. Note that the value may differ from one view to the next if the views are on monitors with different UI scales.
|Get the height used for a single Editor control such as a one-line EditorGUI.TextField or EditorGUI.Popup.
|Get the height used by default for vertical spacing between controls.
|The system copy buffer.
|True if a text field currently has focused and the text in it is selected.
|Get a white texture.
|Is the Editor GUI currently in wide mode?
|Add a custom mouse pointer to a control.
|Creates an event that can be sent to another window.
|Draw a color swatch.
|Draw a curve swatch.
|Draw swatch with a filled region between two SerializedProperty curves.
|Get a texture from its source filename.
|Get one of the built-in GUI skins, which can be the game view, inspector or Scene view skin as chosen by the parameter.
|Layout list of string items left to right, top to bottom in the given area.
|Get the size that has been set using SetIconSize.
|The controlID of the currently showing object picker.
|The object currently selected in the object picker.
|Does a given class have per-object thumbnails?
|Fetch the GUIContent from the Unity builtin resources with the given name.
|Check if any enabled camera can render to a particular display.
|Load a built-in resource.
|Load a required built-in resource.
|Make all EditorGUI look like regular controls.
|Return a GUIContent object with the name and icon of an Object.
|Ping an object in the Scene like clicking it in an inspector.
|Convert from pixel space to point space.
|Convert from point space to pixel space.
|Send an input event into the game.
|Set icons rendered as part of GUIContent to be rendered at a specific size.
|Show the object picker from code.
|A global property, which is true if a ModalWindow is being displayed, false otherwise.
|The controlID of the current hot control.
|The controlID of the control that has keyboard focus.
|Get access to the system-wide clipboard.
|Align a local space rectangle to the pixel grid.
|Puts 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.
|Get a unique ID for a control.
|Get a state object from a controlID.
|Convert a point from GUI position to screen space.
|Get an existing state object from a controlID.
|Helper function to rotate the GUI around a point.
|Helper function to scale the GUI around a point.
|Convert a point from screen space to GUI position.
Did you find this page useful? Please give it a rating: