Author Topic: UIButtonMessage OnPress/OnRelease weirdness  (Read 5004 times)

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
UIButtonMessage OnPress/OnRelease weirdness
« on: April 17, 2012, 07:09:48 AM »
I'm having a little trouble with having more than one UIButtonMessage on a single button.

I have a button that should trigger a "down" animation OnPress and a "up" animation OnRelease, but having two UIButtonMessage scripts on the button, causes only the oldest script added to the GameObject to be called.

I tried removing one of them, and adding the other again, and it called the other one.

Can't more than one script pick up on the OnPress call?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: UIButtonMessage OnPress/OnRelease weirdness
« Reply #1 on: April 17, 2012, 07:10:38 AM »
It's obviously a script execution order problem, but I thought both should be called anyway?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: UIButtonMessage OnPress/OnRelease weirdness
« Reply #2 on: April 17, 2012, 07:13:06 AM »
Wait wait.. now it works. Damnation. Move merrily along.  8)