Author Topic: NGUI Scale problem- Paid version not good rather than old free version  (Read 2806 times)

truesoldersprit

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Hello, NGUI support team.
I liked your Plugin with your free version, so I purchased paid version in recent days.
But, really I'm sad and feeling bad, because I'm wasting my time very much and much.
Only one problem( NGUI scale problem) is make me very sad.
Why you didn't inherit UIStretch function fully.

My old using with old NGUI, was the perfect by using  the UIStretch for one panel.
That made the perfect scaling and positioning for different screen size for mobile devices.
Only one script - UIStretch , used on Panel object.

But now, I 'm agree you improved many of goods , but I'm not sure you didn't inherit exactly, or I'm not finding out it yet.

I'm really urgent needed for this.
I'm strictly asking you.
How can I do to recover old use about UIStretch on root panel object.
That made all child NGUI objects so that they can scale and position perfectly to screen.

I'm waiting  for your reply, NGUI support team!
« Last Edit: April 05, 2014, 11:15:14 AM by truesoldersprit »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
UIStretch is a deprecated component. All widgets and panels have built-in anchoring that can achieve what UIStretch could do and then some. Watch the Layout System videos referenced on the NGUI's documentation page. http://www.tasharen.com/forum/index.php?topic=6754.0

truesoldersprit

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
I checked all your documents and references and also Developer forums.
But still I couldn't find out the solution and this is why I'm feeling bad.

Please let me know kindly how can I do following target.

I did design in 960*480.
While I'll change the resolution , All NGUI elements have to be change into same scale and also same ratio position.

Your new layout system is great, but in this, I'm not sure your new system is good or not.
I tested in all the way. for same ratio width for each element, I attached UISretch scripts, so I could do it.
Next I tried to keep the same ratio position for each element, in this part really I couldn't find out the solution.

Please give me correct answer, not tutorial and not reference.
My question is simple.
I'm making clear about my question again.

Question:
I designed on 960*640 resolution.
I'm resizing freely.
I'm needed same ratio position, and same ratio width,height for each NGUI elements.

There are any solutions?

Thank you for your reply, and hop your answer.







ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
All widgets have an "aspect ratio" field you can set. Use it together with the anchoring to achieve the desired result.

And remember -- you don't have to anchor all 4 sides. Advanced anchor type lets you choose only specific sides to be anchored.