Author Topic: Selecting/Highlighting Text  (Read 6104 times)

logic.cpp

  • Guest
Selecting/Highlighting Text
« on: April 18, 2013, 06:15:27 AM »
Selecting/Highlighting text in a label (or any other text widget) for further processing of highlighted text - Possible? How?

If not, workaround?

Desired effect: Click & Drag mouse over text causes text background to highlight, any text highlighted becomes available in some variable.
(Currently Unity GUI offers this functionality, with the help of its undocumented TextEditor class)
« Last Edit: April 18, 2013, 06:26:00 AM by logic.cpp »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Selecting/Highlighting Text
« Reply #1 on: April 18, 2013, 05:48:44 PM »
Not currently possible, but I vaguely remember there being an add-on for NGUI that made it possible. I don't have a link off the top of my head, however.

Wonse

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 15
    • View Profile
Re: Selecting/Highlighting Text
« Reply #2 on: March 12, 2015, 10:36:32 AM »
2 years later, is this possible now ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Selecting/Highlighting Text
« Reply #3 on: March 12, 2015, 08:29:00 PM »
If it's an input field you can do it, yes.