playMaker

Author Topic: PlayMaker with NGUI problem  (Read 4793 times)

Fortunato

  • Playmaker Newbie
  • *
  • Posts: 17
PlayMaker with NGUI problem
« on: November 11, 2013, 10:27:20 AM »
Hi. I have problem with NGUI. I downloaded this package: https://hutonggames.fogbugz.com/default.asp?W1111
Imported it, deleted folder "Widgets", because was this errors:
Quote
Assets/PlayMaker NGUI/Widgets/UIJoystick.cs(133,45): error CS1061: Type `UnityEngine.Vector3' does not contain a definition for `AlmostEquals' and no extension method `AlmostEquals' of type `UnityEngine.Vector3' could be found (are you missing a using directive or an assembly reference?)
Quote
Assets/PlayMaker NGUI/Widgets/Actions/NguiGetJoystickInput.cs(32,17): error CS0246: The type or namespace name `UIJoystick' could not be found. Are you missing a using directive or an assembly reference?
After, i remove this lines from "NGuiEventsToPlaymakerFsmEventsInspector.cs":
Code: [Select]
if (_target.DoesTargetMissEventImplementation(fsm,_fsmEvent))
{
_color = PlayMakerPhotonEditorUtility.lightOrange;
_feedback = "Not used";
}
because was this error:
Quote
Assets/PlayMaker NGUI/Scripts/Editor/NGuiEventsToPlaymakerFsmEventsInspector.cs(103,50): error CS0103: The name `PlayMakerPhotonEditorUtility' does not exist in the current context
Ok, after that error ended.

After, i attached to scene prefab "NGUI PlayMaker Proxy", add to NGUI button script "NGuiEventsToPlaymakerFsmEvents" and select in "target" GameObject with FSM. Screen: http://gyazo.com/54cab8b66538137c8303953a6d3d5685
But, in FSM, i cant find NGUI events: http://gyazo.com/1c6d8d8073edb25a35ada237d8e57452

Where is mistake?

Splankton

  • Sr. Member
  • ****
  • Posts: 268
Re: PlayMaker with NGUI problem
« Reply #1 on: November 11, 2013, 12:06:46 PM »
Do you have Photon added?

Fortunato

  • Playmaker Newbie
  • *
  • Posts: 17
Re: PlayMaker with NGUI problem
« Reply #2 on: November 12, 2013, 12:44:34 AM »
Do you have Photon added?
No. I don't need network in my project.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: PlayMaker with NGUI problem
« Reply #3 on: November 12, 2013, 01:13:20 AM »
Hi,

 Yes, this is an issue that I have to sort with this package, It's already been added on the todo list on trello:

https://trello.com/c/odFklHEv/22-ngui-3-05

-- simply delete the uijoystick.cs , you don't need this right?
-- replace _color = PlayMakerPhotonEditorUtility.lightOrange; with _color = Color.red;

The related global events are stored in a prefab, so drag the prefab "NGUI PlayMaker Proxy" in your scene to have them available.

Bye,

 Jean

Fortunato

  • Playmaker Newbie
  • *
  • Posts: 17
Re: PlayMaker with NGUI problem
« Reply #4 on: November 12, 2013, 01:48:09 AM »
Hi,

 Yes, this is an issue that I have to sort with this package, It's already been added on the todo list on trello:

https://trello.com/c/odFklHEv/22-ngui-3-05

-- simply delete the uijoystick.cs , you don't need this right?
-- replace _color = PlayMakerPhotonEditorUtility.lightOrange; with _color = Color.red;

The related global events are stored in a prefab, so drag the prefab "NGUI PlayMaker Proxy" in your scene to have them available.

Bye,

 Jean
Yes, i deleted UIJoystick and NguiGetJoystickInput.
Replace _color = PlayMakerPhotonEditorUtility.lightOrange; to _color = Color.red;.
Add to scene prefab "NGUI PlayMaker Proxy", but i see that its haven't any script in inspector: http://gyazo.com/a24271c85d613c7b19a39f0f3d157e70
So it should be? "Console" are no errors.

In FSM i still do not see events from NGUI.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: PlayMaker with NGUI problem
« Reply #5 on: November 12, 2013, 01:50:08 AM »
Hi,

 update your playmaker version, you are likely not using the latest version of PlayMaker,

bye,

 Jean

Fortunato

  • Playmaker Newbie
  • *
  • Posts: 17
Re: PlayMaker with NGUI problem
« Reply #6 on: November 12, 2013, 02:18:21 AM »
Hi,

 update your playmaker version, you are likely not using the latest version of PlayMaker,

bye,

 Jean
How do you define it? My version is last and haven't updates: http://gyazo.com/9f6768e34d1aadcd0ae8b093d5526310
Still i imported it again, but problem remains.
« Last Edit: November 12, 2013, 02:20:12 AM by Fortunato »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: PlayMaker with NGUI problem
« Reply #7 on: November 12, 2013, 04:25:20 AM »
Hi,

 Can you try on a fresh project?

bye,

 Jean

Fortunato

  • Playmaker Newbie
  • *
  • Posts: 17
Re: PlayMaker with NGUI problem
« Reply #8 on: November 12, 2013, 08:22:42 AM »
Hi,

 Can you try on a fresh project?

bye,

 Jean
After all of the same actions in a new project, all is work. Hmm, it's a mystery why in another project, it doesn't work... Why this might been?
« Last Edit: November 12, 2013, 08:25:01 AM by Fortunato »

Fortunato

  • Playmaker Newbie
  • *
  • Posts: 17
Re: PlayMaker with NGUI problem
« Reply #9 on: November 13, 2013, 04:52:04 AM »
Please tell, what i need to do, to make a worked prefab in my project. My project have last version of PlayMaker. I can't switch to another project.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: PlayMaker with NGUI problem
« Reply #10 on: November 14, 2013, 12:22:39 AM »
Hi,

If you export this prefab in your fresh project does it work then? if it does, then you simply need to delete the playmaker folder, the ngui folder and the "playmaker ngui" folder, and reimport everything clean, its' important to not attempt just importing as it's not clean enough.

The key to fix your project is cleaning it up, so anything from the asset store or the wiki has to be deleted properly ( don't keep folders and files from that) and reimport again.

 MAKE A BACK UP FIRST AND TRY ON A COPY FIRST.

Bye,

 Jean

Fortunato

  • Playmaker Newbie
  • *
  • Posts: 17
Re: PlayMaker with NGUI problem
« Reply #11 on: November 16, 2013, 10:02:24 AM »
Tried a lot of variant, but in the end, created again all FSM's in a new project, where PM>NGUI works. Now it works.