Author Topic: Does NGUI support multiline text editing?  (Read 4284 times)

Vesuvian

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
Does NGUI support multiline text editing?
« on: October 20, 2013, 07:44:13 PM »
Hi all

Apologies if this is the wrong place; I'm currently trying to evaluate if NGUI is a technology my team will start using, and a contingency of this is the support of multiline text editing.

I've been looking at the available examples, reading forum posts and looking at Youtube videos. So far I can see that multiline text is possible by feeding "\n" into a label, but I'm struggling to find information on how good the input functionality is.

Can anyone please tell me if any of the following is supported in the latest version of NGUI?

  • Moving cursor in a body of text, via mouse or arrow keys
  • Highlighting text
  • Copy/paste

I appreciate these may be outside the scope of NGUI. Perhaps there are extensions that implement these?

Thanks,
Ves

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Does NGUI support multiline text editing?
« Reply #1 on: October 20, 2013, 07:46:33 PM »
\n is not going to work as it's two characters. A newline symbol is a single character -- '\n', which is just done by hitting Enter. NGUI 3.0.3 gives the ability to move the caret and copy/paste, but there is no highlighting. There is another solution that offers all of this already as an add-on:

http://www.tasharen.com/forum/index.php?topic=5371.msg25575#msg25575

Vesuvian

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
Re: Does NGUI support multiline text editing?
« Reply #2 on: October 20, 2013, 08:07:38 PM »
Thank you for your timely response Aren. The extension definitely seems to resolve my hesitations with NGUI. I've been playing with the following demo:

http://www.ninjutsugames.com/unityassets/ultimateinput/

Can you confirm that this level of control is present in 3d labels?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Does NGUI support multiline text editing?
« Reply #3 on: October 20, 2013, 09:00:57 PM »
It's best you ask its author, Hjupter.

jeffpk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: Does NGUI support multiline text editing?
« Reply #4 on: March 19, 2014, 12:54:27 PM »
I bought this, but its erring on compilation.
Errors attached.


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Does NGUI support multiline text editing?
« Reply #5 on: March 20, 2014, 01:26:39 AM »
NGUI supports multi-line text areas natively now. Just drag in "Control - Text Area" for an example.