playMaker

Author Topic: NGUI On Drop Question [SOLVED]  (Read 1452 times)

tomraegan

  • Playmaker Newbie
  • *
  • Posts: 14
NGUI On Drop Question [SOLVED]
« on: December 04, 2017, 05:17:33 AM »
Hi. I've been reading the forums and the admin do a great job here.

In relation to NGUI, I've installed the Eco package and come across something strange. I'm following these instructions, posted by Jean a while ago:

Quote
1: open the ngui example11 scene
2: select the gameObject 3D/Stage/DragDropSurface
3: add the component "NGuiEventsToPlaymakerFsmEvents" to it
4: add a Fsm component to DragDropSurface as well
5: in the fsm, add a state with a global transition "NGUI / ON DROP" ( all ngui events are available in the transition menu under "global events"
6: double check that in the NGuiEventsToPlaymakerFsmEvents, the Drop entry turned green, this means, we have detected that you are actually implement the "NGUI / ON DROP" event.
7: run the scene, drop something onto the cube, and the fsm will receive the drop event.

Now, if you ae building a scene from scratch, it could simply be that you don't set up ngui properly to being with.
-- also, you may think that the gameobject you have adde the component NGuiEventsToPlaymakerFsmEvents received drop events, but actually doesn't, that's something you will need to verify outside playmaker

environment, like dropping a simply script that listen to drop events ( very much like "DragDropSurface" script provided in the example 11 scene.
[/size]

My problem is that the NGUI On Drop transition does not show up when I attempt to add it to the state. I can add various others, such as On Click, which then results in the Click entry turning green.

Is there a reason On Drop is not appearing?

Thanks kindly.
« Last Edit: December 07, 2017, 12:54:22 PM by djaydino »

tomraegan

  • Playmaker Newbie
  • *
  • Posts: 14
Re: NGUI On Drop Question
« Reply #1 on: December 05, 2017, 03:42:32 AM »
My error. Upon reinstalling the lot, it all shows up.

Have a nice day  8)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: NGUI On Drop Question
« Reply #2 on: December 07, 2017, 12:54:09 PM »
hi.
No problem :)