Beispiel #1
0
 /// <summary>
 /// Clear console logs
 /// </summary>
 static public void ClearDeveloperConsole()
 {
     ReflectionUtility.IStaticCall("LogEntries", "Clear");
 }
Beispiel #2
0
 /// <summary>
 /// Open popup to open layout (top right in editor)
 /// </summary>
 static public void OpenLayoutDialog()
 {
     ReflectionUtility.IStaticCall("EditorUtility", "Internal_DisplayPopupMenu",
                                   GUIUtility.GUIToScreenPoint(ev.mousePosition).ToRect(), "Window/Layouts", null, 0);
 }
Beispiel #3
0
 static object OpenHierarchy()
 {
     return(EditorWindow.GetWindow(ReflectionUtility.GetTypeFromUT("SceneHierarchyWindow"), false, null, false));
 }
Beispiel #4
0
 /// <summary>
 /// Open popup to open layer masking (top right in editor)
 /// </summary>
 static public void OpenLayerMaskDialog()
 {
     ReflectionUtility.IStaticCall("LayerVisibilityWindow", "ShowAtPosition", ev.mousePosition.ToRect());
 }