Author Topic: NGUI chat to take control of the user inputs?  (Read 3676 times)

jmgrost

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
NGUI chat to take control of the user inputs?
« on: September 17, 2014, 12:32:16 PM »
Hello, i have a chat window working right now, i just want to focus all user inputs to the chat input and not to the game itself, when i type in the chat window, my character moves if i press AWSD. Anyone can help me to find a way to do this? thank you

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI chat to take control of the user inputs?
« Reply #1 on: September 17, 2014, 01:23:40 PM »
Use UICamera.isOverUI or UICamera.inputHasFocus.