Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: S3XY on August 11, 2016, 04:01:44 AM

Title: Scaling 3-sliced sprite
Post by: S3XY on August 11, 2016, 04:01:44 AM
I wonder if theres a way to scale the height of a 3 sliced sprite without losing the proportion of the borders?

(https://s9.postimg.org/vqm71nytr/Screen_Shot_2016_08_11_at_10_54_19_AM.png)

Scaling witdh works perfectly. I don't want to touch the transform scale.
Title: Re: Scaling 3-sliced sprite
Post by: ArenMook on August 13, 2016, 03:48:04 PM
Not unless you write a custom widget for that. Sliced sprites keep the dimensions of the corners as-is, and adjust 1 of the 2 dimensions of the sides. Only the center resizes freely.
Title: Re: Scaling 3-sliced sprite
Post by: S3XY on August 19, 2016, 06:27:32 AM
Thx, i made a solution where i took one square and two circle sprites and arrange/scale them automatically.