Author Topic: multiple images button's problem  (Read 3435 times)

kfconeone

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
multiple images button's problem
« on: April 22, 2014, 12:38:07 AM »
I have a button with multiple sprites, but UIButton can set only one tween target...

is there any way that I can do without add more UIButton scripts on the Gameobject?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: multiple images button's problem
« Reply #1 on: April 22, 2014, 05:02:38 AM »
Simply attach multiple UIButton components.

kfconeone

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: multiple images button's problem
« Reply #2 on: April 23, 2014, 02:55:21 AM »
thanks for your reply! I've been wondering that will produce some performance problems

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: multiple images button's problem
« Reply #3 on: April 23, 2014, 06:11:40 AM »
Tweening one sprite or tweening multiple sprites, the effect is the same -- draw calls have to be rebuilt. So you won't notice any difference in performance.