Author Topic: UIButton not work in Display 2  (Read 332 times)

heybaby2707

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
UIButton not work in Display 2
« on: March 16, 2017, 10:55:52 AM »
I'm using NGUI 3.11.2 and my project have two display 1 & 2.
When I add UIButton to Display 1 everything is okie but when I change Camera => Target to Display 2 can't detect hover or click.  :(

Have any way to fix it? Thank you very much.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 327
  • -Receive: 1153
  • Posts: 22,063
  • Toronto, Canada
    • View Profile
Re: UIButton not work in Display 2
« Reply #1 on: March 21, 2017, 04:11:23 PM »
NGUI doesn't know anything about displays. It works exclusively with cameras. Events go through cameras. Off the top of my head there isn't much I can think of to suggest to check. I am not familiar with how different display targeting works in Unity. All I can suggest is write a script that will print the mouse position and see what it's like when targeting your secondary display.