Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: AceDude on July 07, 2014, 09:46:01 AM

Title: Interactive UI on a PDA / computer screen
Post by: AceDude 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!
Title: Re: Interactive UI on a PDA / computer screen
Post by: andreyd 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.
Title: Re: Interactive UI on a PDA / computer screen
Post by: AceDude on July 07, 2014, 09:57:21 AM
Yes I do. I'll PM you with my structure, one moment.
Title: Re: Interactive UI on a PDA / computer screen
Post by: AceDude 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.