Static Public Member Functions | |
static void | FocusInspectorWindow () |
Focuses the inspector window. Opens it if it is not already open. More... | |
static void | RefreshInspectorWindow (bool rebuildInspectors=false) |
Refreshes the inspector window. More... | |
static EditorWindow | FindWindow (string className) |
Finds a window of a type from the UnityEditor namespace if it is open. More... | |
static UnityEngine.Object[] | FindWindows (string className) |
Finds all open windows of a type from the UnityEditor namespace. More... | |
static EditorWindow | OpenWindow (string className) |
Opens a window of a type from the UnityEditor namespace. More... | |
static void | CenterWindow (EditorWindow window, float width=400f, float height=150f) |
Resizes and centers a window in the center of the Unity editor. More... | |
static Rect | GetEditorPosition () |
Gets the position of the Unity editor in screen pixels. More... | |
static bool | SetDefineSymbol (string symbol) |
Sets a define symbol for the current build target. More... | |
static bool | ClearDefineSymbol (string symbol) |
Clears a define symbol for the current build target. More... | |
static T | GetPropertyValue< T > (SerializedProperty property, UnityEngine.Object target=null) |
Gets the value of a serialized property using reflection. More... | |
static string | GetUnityUserId () |
Get the Unity user's account ID More... | |
static string | GetUnityUserDisplayName () |
Gets the Unity user's display name. More... | |
static string | GetReleaseId () |
Get the Unity package release ID More... | |
Properties | |
static bool | IsUnityFocused [get] |
Is Unity the focused application? More... | |
Editor utilities
|
static |
Resizes and centers a window in the center of the Unity editor.
window | window to center. |
width | width for the window in pixels. |
height | height for the window in pixels. |
|
static |
Clears a define symbol for the current build target.
symbol | symbol to clear |
|
static |
Finds a window of a type from the UnityEditor namespace if it is open.
This can be used to get instances of internal Unity windows.
className | name of editor window class to find instance of. |
|
static |
Finds all open windows of a type from the UnityEditor namespace.
This can be used to get instances of internal Unity windows.
className | name of editor window class to find instances of. |
|
static |
Focuses the inspector window. Opens it if it is not already open.
|
static |
|
static |
Gets the value of a serialized property using reflection.
property | property to get value from. |
target | target object to get property value from. If null, uses the property target. |
|
static |
Get the Unity package release ID
|
static |
Gets the Unity user's display name.
|
static |
Get the Unity user's account ID
|
static |
Opens a window of a type from the UnityEditor namespace.
If a window of the type is already open, returns it. This can be used to open internal Unity windows.
className | name of editor window class to open. |
|
static |
Refreshes the inspector window.
rebuildInspectors | if true, inspectors will be rebuilt. |
|
static |
Sets a define symbol for the current build target.
symbol | symbol to define. |
|
staticget |
Is Unity the focused application?