Author Topic: UI Input script focus  (Read 715 times)

DJVDJV

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
UI Input script focus
« on: September 18, 2015, 03:44:21 PM »
Hellos.

I use UI Input script as input field in my game.

All works well, but I need text field get full focus of keyboard when I press keys.

So like my character moves with "w" "a" "s" and "d" -keys and I do NOT want character to move when input field is activated and w a s or d are pressed on text field.

How I should do this? What is right way to do it?


devomage

  • Sr. Member
  • ****
  • Thank You
  • -Given: 7
  • -Receive: 67
  • Posts: 250
    • View Profile
Re: UI Input script focus
« Reply #1 on: September 19, 2015, 05:51:34 AM »
  1. UICamera.inputHasFocus
  2.