Author Topic: Interactive UI on a PDA / computer screen  (Read 2032 times)

AceDude

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Interactive UI on a PDA / computer screen
« on: July 07, 2014, 09:46:01 AM »
Hey,
I'm trying to make an interactive screen with NGUI. Try thinking about a computer screen / PDA or a smartphone. I was able to attach GUI to a surface, but after hours of trying I'm still unable to pass mouse events to it. Just to clarify, I had this thing working with CoherentUI, but after I switched to NGUI, it does not work. Does anybody have any ideas about how to do it? Is it even possible?

Thanks in advance!

andreyd

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 18
    • View Profile
Re: Interactive UI on a PDA / computer screen
« Reply #1 on: July 07, 2014, 09:49:14 AM »
Do you have a UICamera component attached to any of your objects? Without your scene structure it would be difficult to determine what exactly working with it.

AceDude

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: Interactive UI on a PDA / computer screen
« Reply #2 on: July 07, 2014, 09:57:21 AM »
Yes I do. I'll PM you with my structure, one moment.

AceDude

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: Interactive UI on a PDA / computer screen
« Reply #3 on: July 07, 2014, 01:24:30 PM »
So, I tried googling it once more and stumbled upon this: http://www.tasharen.com/forum/index.php?topic=2547.0

Looks like I missed one part: adding NGUI event system on main camera. That fixed it.