Author Topic: UISlicedSprite and parent scaling  (Read 2722 times)

bbbscarter

  • Guest
UISlicedSprite and parent scaling
« 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
 

bbbscarter

  • Guest
Re: UISlicedSprite and parent scaling
« Reply #1 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).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UISlicedSprite and parent scaling
« Reply #2 on: July 27, 2012, 02:59:09 PM »
UIStretch is meant to be placed on the widget itself, not on the widget's parent.