playMaker

Author Topic: PlayMaker and NGUI UISlider[SOLVED]  (Read 4272 times)

tman1978

  • Playmaker Newbie
  • *
  • Posts: 11
PlayMaker and NGUI UISlider[SOLVED]
« on: April 22, 2014, 12:53:40 AM »
I'm trying to get PlayMaker working with a UISlider to fire events when the UISlider value is changed but I cannot get it to work. Here is what I have done so far:
1. Placed the NGUI Playmake Proxy prefab in my scene.
2. Attached the NGuiEventsToPlaymakerFsmEvents script to my slider.
3. Set the FSM target on NGuiEventsToPlaymakerFsmEvents to an FSM in my scene.
4. Added a NGUI / ON SLIDER CHANGE transition event to my state.
5. In the "On Value Change" of my slider I've put my NGUI PlayMaker Proxy gameObject that was created from the prefab.

After performing the steps above no events get fired when I drag my slider. Can someone help me find where I've gone wrong? Also, can someone provide a simple scene that that shows how to get this working?

I'm using NGUI 3.5.7 and PlayMaker 1.7.7.1.

Thanks.
« Last Edit: April 25, 2014, 08:21:55 AM by jeanfabre »

tman1978

  • Playmaker Newbie
  • *
  • Posts: 11
Re: PlayMaker and NGUI UISlider
« Reply #1 on: April 23, 2014, 01:42:35 PM »
I've attached a simple scene that shows the problem I'm having. Import into a project that has the latest versions of NGUI, PlayMaker, and the PlayMaker NGUI addon.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: PlayMaker and NGUI UISlider
« Reply #2 on: April 24, 2014, 08:59:43 AM »
Hi,

 I have updated the packages so that it works now. Also, you don't need to bind anything manually, simply having the NGuiEventsToPlaymakerFsmEvents on the same gameobject as the slider will do as long as you implemented the NGUI / ON SLIDER CHANGE event or your custom one for that slot.

 I have created an example for this  ( tutorial 10 -sliders in the playmaker ngui samples).

 Bye,

 Jean

tman1978

  • Playmaker Newbie
  • *
  • Posts: 11
Re: PlayMaker and NGUI UISlider
« Reply #3 on: April 24, 2014, 04:10:42 PM »
Thanks, it works now with the updated package.

anadin

  • Playmaker Newbie
  • *
  • Posts: 5
Re: PlayMaker and NGUI UISlider[SOLVED]
« Reply #4 on: May 27, 2014, 01:13:15 AM »
Hi Jean, this does not appear to be working with 3.6.0 or 3.6.1 of NGUI - possible that something has changed again?

anadin

  • Playmaker Newbie
  • *
  • Posts: 5
Re: PlayMaker and NGUI UISlider
« Reply #5 on: May 27, 2014, 01:17:24 AM »
OK the problem is with customising the Slider Event, using the NGUI / ON SLIDER CHANGE works but not if I use MySliderEvent.
« Last Edit: May 27, 2014, 01:19:21 AM by anadin »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: PlayMaker and NGUI UISlider[SOLVED]
« Reply #6 on: May 29, 2014, 01:54:04 AM »
Hi,

 I doubled checked and it's working. Are you sure you don't have a typo? make sure you copy the event name properly between this proxy and PlayMaker.

Bye,

 Jean