Author Topic: [UICamera] is this a bug? (ProcessOthers)  (Read 7918 times)

gyd

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 87
    • View Profile
[UICamera] is this a bug? (ProcessOthers)
« on: September 13, 2016, 10:07:58 AM »
UICamera.cs
line 2225
  1. if (!useMouse && (key >= KeyCode.Mouse0 || key <= KeyCode.Mouse6)) continue;
  2.  

KeyCode.Mouse0 = 323
KeyCode.Mouse6 = 329

 (key >= KeyCode.Mouse0 || key <= KeyCode.Mouse6) will always be true
 (!useMouse && (key >= KeyCode.Mouse0 || key <= KeyCode.Mouse6)) will always be true when useMouse is false

i think it should be this one
  1. if (!useMouse && (key >= KeyCode.Mouse0 && key <= KeyCode.Mouse6)) continue;
  2.  

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [UICamera] is this a bug? (ProcessOthers)
« Reply #1 on: September 13, 2016, 11:16:15 AM »
It's already like that in NGUI. What version are you on?

gyd

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 87
    • View Profile
Re: [UICamera] is this a bug? (ProcessOthers)
« Reply #2 on: September 13, 2016, 01:58:58 PM »
i think it's 3.9.9
and i checked the changelog of 3.10/3.10.1, i didnt see the log, maybe it's missed?