Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: bbbscarter on July 27, 2012, 10:24:25 AM

Title: UISlicedSprite and parent scaling
Post by: bbbscarter on July 27, 2012, 10:24:25 AM
Hi!

Not sure if this is a bug or a misunderstanding on my part. Essentially:
- If you have a UISlicedSprite and scale it directly, everything is fine.
- If you have a UISlicedSprite and scale its parent, it goes blurry just like a normal sprite.

While this normally wouldn't matter, it makes it difficult to have a panel that stretches to always encompass, say, the right 25% of the screen using UIStretch - instead of being able to slap the stretch component onto a single parent object you have to stick it on all the leaf widgets.

Thanks in advance for the help!

Simon
 
Title: Re: UISlicedSprite and parent scaling
Post by: bbbscarter on July 27, 2012, 10:44:18 AM
Sorry, should have searched more thoroughly before posting - found this earlier thread.
http://www.tasharen.com/forum/index.php?topic=395.msg1865#msg1865

Any suggested workarounds for the scenario I describe, using a UIStretch? And are there any other widgets that will have problems with their parents scaling (wondering if I could reduce the UIStretch duplication by bundling all the non-sliced sprites under one parent).
Title: Re: UISlicedSprite and parent scaling
Post by: ArenMook on July 27, 2012, 02:59:09 PM
UIStretch is meant to be placed on the widget itself, not on the widget's parent.