Author Topic: UIButton not work in Display 2  (Read 4721 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: 337
  • -Receive: 1171
  • Posts: 22,128
  • 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.

doodaddy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: UIButton not work in Display 2
« Reply #2 on: October 22, 2019, 11:14:51 AM »
Quote
Only the atlas should use truecolor. Background doesn't have to (which is another reason I suggest moving it out of your atlas).

If the background isn't truecolor, though, wouldn't it get fuzzy?  it's still part of the UI.  Won't iOS use PVRTC and make it look crappy?