I am writing an editor window that uses a TextArea as the main input however the text cursor doesn’t flash without constant update and even then does not flash correctly.
After some experimentation, it seems that for the cursor to flash it requires constant calls to GUI.TextArea however as I am in an editor window OnGUI is only called when an event occurs (such as a click) and therefore the cursor doesn’t flash (until a large number of events have occurred at least).
This is partly solvable by calling Repaint() in update so that OnGUI is constantly called but it consumes CPU at an alarming rate. Furthermore, the cursor constantly flashes and so when I am moving the cursor around it can disappear and leave me guessing at where it is.
Hence my question: is there a way to manually control the cursor icon so I can choose when it shows or, even better, is there a simple way to get it to flash as it should? Currently it’s looking like I’ll have to optimise my OnGUI routine ten fold so that I can reduce CPU just to get the cursor to flash…
Jamie