2D Toolkit Forum

2D Toolkit => Support => Topic started by: Desttro on May 09, 2015, 01:08:26 pm

Title: Dynamicly resizeable custom Buttons - how to make?
Post by: Desttro on May 09, 2015, 01:08:26 pm
Please I have bought GUI pack for 2D mobile games. I have vectors for buttons but I don't know how to make it "smaller" - dynamically resizable for Unity, as is in tk2d UI demo.

This is my bought button:
(http://i.stack.imgur.com/9lz0B.png)

And I need to make from it this (with all corners, etc.)
(http://i.stack.imgur.com/onw3C.png)


In Unity, I will resize it according to my needs and add text. But I don't know how to make it in Photoshop or Illustrator, how to smaller it with keep corners and make "middle" of button to be dynamic.

Thank you for help.
Title: Re: Dynamicly resizeable custom Buttons - how to make?
Post by: Desttro on May 10, 2015, 11:23:14 am
solved by slicing in tk2d
Title: Re: Dynamicly resizeable custom Buttons - how to make?
Post by: unikronsoftware on May 11, 2015, 12:30:39 am
That's it, slicing will solve that issue. The middle tiling bit can be done with a separate tiled texture.