- Home /
Trying to Highlight text in order to copy and paste, but do not want the text to be editable.
Apparently, you only gain the ability to highlight text in an input field that has intractable set to true. However, this gives the player the ability to edit the text and I do not want that. Is there a straightforward way to make text highlightable, but not editable?
Thanks
Answer by VesuvianPrime · Feb 10, 2015 at 02:42 AM
Simply don't assign the input string to your text variable.
http://answers.unity3d.com/questions/28145/how-to-make-textarea-or-a-textfield-uneditable.html
Hey, thanks for the reply. I know that's how I would do it in the legacy GUI system, however it doesn't work out using UGui which is why I am a bit confused. Any ideas?
Your answer
Follow this Question
Related Questions
GUIText which corresponds with a GUIBox 1 Answer
Mouse and Oculus Touch Controller Inputs 0 Answers
Distribute terrain in zones 3 Answers
Multiple Cars not working 1 Answer