Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Kingtem on August 09, 2012, 10:40:27 AM

Title: [Solved]Get Property dosent work with N-GUI
Post by: Kingtem 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
Title: Re: Get Property dosent work with N-GUI
Post by: amaranth 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.
Title: Re: Get Property dosent work with N-GUI
Post by: Kingtem 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. ;)
Title: Re: Get Property dosent work with N-GUI
Post by: amaranth on August 09, 2012, 10:12:00 PM
No prob! I just found this official PlayMaker video that also should be helpful.
Title: Re: Get Property dosent work with N-GUI
Post by: Kingtem on August 09, 2012, 11:58:23 PM
OK, I'll check it later! It's kind of you! :D
Title: Re: Get Property dosent work with N-GUI
Post by: Kingtem 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.  ;)