Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Trapping Value Changed & Setting Focus

Discussion in 'UGUI & TextMesh Pro' started by Lypheus, Aug 22, 2014.

  1. Lypheus


    Apr 16, 2010
    Is there a way to select an InputField via script?

    I'd like to trap TAB/ENTER key press events and set the focus to another field - how do we preview key events in the event buffer and discard them (i.e. so I can trap a TAB keypress, ignore it and set focus to the next field)?
  2. nventimiglia


    Sep 20, 2011
    yeah I ran into this problem also.I was able to trap the tab character easy enough however I have not been able to select the next control.

    to catch the tab character I wrote a script which scan for changesand it caught the tab character ('\t') and undid it.

    I then grabbed the event system manager but the select next item method did not work as expected