Author Topic: [SOLVED] Can't get the right on-screen coords of a widget?  (Read 1712 times)

vexe

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 153
    • View Profile
[SOLVED] Can't get the right on-screen coords of a widget?
« on: November 23, 2013, 03:46:52 AM »
Hello,

WorldToScreenPoint is acting funny with me - as I'm not able to use it to calculate the right on-screen coords of the top left corner of my inventory slot. See my question if you so please: http://answers.unity3d.com/questions/581670/worldtoscreenpoint-isnt-getting-it-right.html

I don't know why but, I think there's some NGUI factor related to the problem.

Anybody?

Thanks.
« Last Edit: November 23, 2013, 05:17:02 AM by vexe »

vexe

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 153
    • View Profile
Re: Can't get the right on-screen coords of a widget?
« Reply #1 on: November 23, 2013, 05:16:44 AM »
Solved by using the UI camera to do the thing - I could have sworn I tried it the first time and it didn't work... strange.