Howdy there! Can anyone explain to me why this EditorWindow doesn’t draw a GUI.Box when the mouse is clicked/down? Much appreciated if anyone has time, thanks!
using UnityEngine;
using UnityEditor;
using System.Collections;
public class TestEditorWindow : EditorWindow {
[MenuItem("Window/TestEditorWindow")]
static void Init () {
TestEditorWindow window = (TestEditorWindow)EditorWindow.GetWindow(typeof(TestEditorWindow));
window.Show();
}
void OnGUI() {
if(Event.current.isMouse) {
GUI.Box(new Rect(10, 10, 10, 10), GUIContent.none);
}
}
}