Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: AntLewis on February 26, 2013, 06:26:49 AM

Title: Newb Question - Scaling
Post by: AntLewis on February 26, 2013, 06:26:49 AM
Hi there, I've noticed in a lot of the tutorial videos I've been watching, that when scaling a button, people tend to scale the image of the button, rather than the parent, which contains the collider (and scaling it would also scale its the image which is it's child). I'm wondering if there's any particular reason for this?

Cheers
Title: Re: Newb Question - Scaling
Post by: ArenMook on February 26, 2013, 07:13:37 AM
No reason. You can scale what you want.
Title: Re: Newb Question - Scaling
Post by: Nicki on February 26, 2013, 03:36:14 PM
With sliced sprites, you'll want to scale the sprite itself, or you will also scale the otherwise "unstretchable" corners and sides.

Other than that, scale all the things (but then don't rely on MakePixelPerfect)