x


How do I change the value of an editor text field while it is selected from code

I want to change an editor text field from a script, while it is currently focused and edited. Essentially I want to make sure that the text field no longer has focus.

more ▼

asked Dec 21 '09 at 08:00 PM

Joachim Ante gravatar image

Joachim Ante
950 5 8 24

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You could generally make the UI lose keyboard control focus:

GUIUtility.keyboardControl = 0;

more ▼

answered Dec 21 '09 at 08:01 PM

Joachim Ante gravatar image

Joachim Ante
950 5 8 24

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3672
x1664
x63

asked: Dec 21 '09 at 08:00 PM

Seen: 1450 times

Last Updated: Jun 24 '10 at 12:10 PM