How can I select text in multiple text areas simultaneously? and keep them selected ? Need something similar to the highlight feature in Microsoft Word.
so far I have tried:
(from: http://forum.unity3d.com/threads/30485-Select-text-on-focus)
GUI.FocusControl() in combination with GUI.SetNextControlName().
- Get an ID for text field (using GUIUtilty.GetControlID ())
- Use Event.GetTypeForControl () to detect clicks onto the TextField
- When detect a click, use GUI.FocusControl() to select the text field.
- Call Event.use, so the normal processing of the event by the TextField is overridden.
but still losing selection when another text area is clicked. Any insight is appreciated.
