playMaker

Author Topic: NGUI get icon positions in "main camera"  (Read 2021 times)

app_advisory

  • Junior Playmaker
  • **
  • Posts: 80
    • App Advisory
NGUI get icon positions in "main camera"
« on: September 09, 2014, 11:55:41 PM »
Hi,

How can I get the position of a widget in the "real world" to move particle from my character to this widget ?

I use get position for the widget, in self position, but it's not exactly the good position...

If I let "world", my particle is moving in the "real" position of this widget.. and it's not good at all.

Any idea ?

Thank you very much !

Best regards,

AB

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: NGUI get icon positions in "main camera"
« Reply #1 on: February 03, 2016, 05:45:11 AM »
Hi,

 there is in NGUI menu "Examples/Follow Target", it's a component that makes a 3d gameobject follow a ui element.

 Can you try this?

Bye,

 Jean