playMaker

Author Topic: UGUI button, fire On Click/Hover transition with action  (Read 2486 times)

Padenlee

  • Junior Playmaker
  • **
  • Posts: 63
  • You can't hit what you don't shoot for!
UGUI button, fire On Click/Hover transition with action
« on: February 19, 2015, 01:05:31 PM »
Hi Playmaker community!

I've been searching all around for this info, my Google-fu is quite strong.

I'm needing to fire the transition of a UGUI Button. Is there a way to do that with an action?

If not,

could someone slap that together?

Keep being awesome!
-Paden Pierry
@padenpierry
Apple inc.'s first TV show, EP 1.
Game Dev since 2007
Coolest client: Bridgestone

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: UGUI button, fire On Click/Hover transition with action
« Reply #1 on: February 19, 2015, 01:26:44 PM »
Hi,

 Can you try this?

http://answers.unity3d.com/questions/820599/simulate-button-presses-through-code-unity-46-gui.html

 it seems that indeed you can execute from code a transition, and so if that works for you, I'll look into making actions to do this.

Bye,

 Jean