Author Topic: NGUI Coordinate System to Unity Screen Coordinates  (Read 4797 times)

bakin

  • Guest
NGUI Coordinate System to Unity Screen Coordinates
« on: March 10, 2013, 03:14:30 PM »
Hi all

I need to get screen coordinate of a NGUI component in unity. I want to check whether user touched to a specific component or not?

Help needed
« Last Edit: March 10, 2013, 03:38:26 PM by bakin »

sintua

  • Jr. Member
  • **
  • Thank You
  • -Given: 7
  • -Receive: 0
  • Posts: 63
    • View Profile
Re: NGUI Coordinate System to Unity Screen Coordinates
« Reply #1 on: March 10, 2013, 04:35:44 PM »
You should be able to just put a collider ON the object in question, then it will trigger OnClick() when it's touched.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: NGUI Coordinate System to Unity Screen Coordinates
« Reply #2 on: March 10, 2013, 05:08:14 PM »
There an entirely different system for getting what has been pushed. Look into UICamera.cs for more information. :)