playMaker

Author Topic: [Solved]Get Property dosent work with N-GUI  (Read 3383 times)

Kingtem

  • Playmaker Newbie
  • *
  • Posts: 4
[Solved]Get Property dosent work with N-GUI
« on: August 09, 2012, 10:40:27 AM »
Hi,
As I said above, "Get Property" cant get the value of N-GUI "sliderValue" or "isChecked". When I tweak the slider or click the checkbox, theres no change in playMaker's variable window. And I'm sure its in the play mode.
Can anyone help me out? I'll really appreciate that!

PS: Unity 3.5.5, playMaker 1.4.3
« Last Edit: August 18, 2012, 11:22:24 PM by Kingtem »

amaranth

  • Full Member
  • ***
  • Posts: 172
Re: Get Property dosent work with N-GUI
« Reply #1 on: August 09, 2012, 04:47:27 PM »
I had this problem, but there is an easy fix. You need to reference an object on the ngui game object, not the ngui game object (or the ngui script in the project tab). To test, create a new FSM state (empty) and then from the Inspector window, drag the specific object attatched to the ngui game object. a dialog box with an option to Set Property appears. Select this. This adds the property information to a newely created Set Property action.

If you have time, try adding an object to the variable list and look at the options for defining the property. There is a drop-down list of scripts you can reference.

Kingtem

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Get Property dosent work with N-GUI
« Reply #2 on: August 09, 2012, 09:19:32 PM »
Thank you amaranth! That really helpful.
I'll try it now. And besides, I hope the developers can fix the problem on latest version, playmaker or N-GUI. ;)

amaranth

  • Full Member
  • ***
  • Posts: 172
Re: Get Property dosent work with N-GUI
« Reply #3 on: August 09, 2012, 10:12:00 PM »
No prob! I just found this official PlayMaker video that also should be helpful.

Kingtem

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Get Property dosent work with N-GUI
« Reply #4 on: August 09, 2012, 11:58:23 PM »
OK, I'll check it later! It's kind of you! :D

Kingtem

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Get Property dosent work with N-GUI
« Reply #5 on: August 18, 2012, 11:21:45 PM »
Put FSM onto a non "Ngui Object", then set or get property from Ngui. That what I got from this problem.  ;)