Playmaker and new UI

I have downloaded the Unity 4.6 beta with the new UI. I have Playmaker, and I want to know how to interact with the new UI. For example, I create a button from Unity, I add a state machine to it, and I want to catch the click button. Can I do that?

Yes.

  • Create a new event listener on the OnClick. (click the little plus button)
  • Drag the GameObject with the state machine onto the slot
  • Select the appropriate function from the drop down list

You can only select functions that are public, have a return type of void, and take no arguments or a single argument of a select few types. See the documentation for details.

If the playmaker state machine does not have an appropriate method you may need to write your own.

Solution: uGUI Actions