Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: realblues on May 19, 2012, 09:47:59 PM

Title: relative coordinate system
Post by: realblues on May 19, 2012, 09:47:59 PM
NGUI has a good system for SD/HD atlas switching, but position problem not cleard for me

Almost widget woks good with ui anchor, but stiil some other widget needs positioned relatively by resolution. like range in 0 ~ 1.0.

Is it already supported?
Title: Re: relative coordinate system
Post by: ArenMook on May 19, 2012, 10:24:41 PM
UIAnchor has the "relativeOffset" property you can modify to achieve relative positioning.
Title: Re: relative coordinate system
Post by: realblues on May 19, 2012, 10:42:23 PM
WOW  it's perfect!!

Thanks  :) :) :)
Title: Re: relative coordinate system
Post by: realblues on May 19, 2012, 10:48:19 PM
I have one more,

is Gameobject have no problem consist with UIsprite and UIAnchor? UIAnchor should be woking with my sprite indivisually.

and.. can i request "AddUIAnchor" in the NGUI Menu?

It looks working well but just for make sure :)
Title: Re: relative coordinate system
Post by: ArenMook on May 19, 2012, 10:53:41 PM
Generally you want to anchor an empty game object, and then your widgets will be parented to that object.
Title: Re: relative coordinate system
Post by: realblues on May 19, 2012, 11:19:57 PM
OK, Thnaks :)