Author Topic: Help with NGUI multiple cameras interaction.  (Read 2916 times)

lolonoa

  • Guest
Help with NGUI multiple cameras interaction.
« on: April 09, 2013, 06:47:29 PM »
Hi, everyone, I just begain to use NGUI, and I am making a sence which has two cameras, one is for the 3D object, the ohter is for the 2D GUI, and I attach a camera control script to the main camera to rotate 3D gameobject, and create a button to press to show/hide a 2d GUI panel, here is the thing I try to solve, when the 2D panel show up, I touch and swipe on the 2D GUI panel, the object can still rotate, but I don't want it to rotate when I touch or swipe the GUI stuff, how could I achieve that, thank you.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Help with NGUI multiple cameras interaction.
« Reply #1 on: April 09, 2013, 09:45:34 PM »
Are you still using Input stuff? You need to rely only on NGUI events. Either you rely on NGUI events, or you do your own "is it over NGUI" logic (which will get tedious, fast).

lolonoa

  • Guest
Re: Help with NGUI multiple cameras interaction.
« Reply #2 on: April 09, 2013, 09:51:32 PM »
Thank you for your repling, but I have no idea how the NGUI event works, I use playmaker to do all the other things, and I am still so confused how to do that, cause I am noob in NGUI.

lolonoa

  • Guest
Re: Help with NGUI multiple cameras interaction.
« Reply #3 on: April 10, 2013, 10:13:44 AM »
anyone could help here, I am stucked here, and have no clue, please ;D

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Help with NGUI multiple cameras interaction.
« Reply #4 on: April 10, 2013, 03:54:32 PM »
I have never used PlayMaker for anything, so I can't be of much help here.

lolonoa

  • Guest
Re: Help with NGUI multiple cameras interaction.
« Reply #5 on: April 11, 2013, 10:07:13 PM »
thank you anyway, because I am not programmer, so I think use the playmaker will be much easier for me, and I have sovled the problem by using set property, when I drag on the 2d GUI, i set the property of the camera control to disable, and then when I drag outside the 2D GUI, I set the propery of the camera control to enable, it works fine, but not so good, anyway, thank you,