Author Topic: How to dynamically change radius of rounded-corner button?  (Read 1478 times)

tvhnet

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
How to dynamically change radius of rounded-corner button?
« on: July 07, 2015, 11:03:43 PM »
Hi,

I'm a newbee. I'm looking for ways to change radius of rounded-corner of a button at design time and runtime.

One way is to use a sliced sprite with a png file, but it is fixed radius.

I heard about using custom mask but I don't know how to do.
Is there any built-in feature in NGUI?

Thanks in advance,

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to dynamically change radius of rounded-corner button?
« Reply #1 on: July 08, 2015, 08:11:13 PM »
If I understand correctly what you are trying to do, there is no simple way of doing it. NGUI works with existing sprites, but you need the sprite itself to be changing, and NGUI doesn't work like that.