playMaker

Author Topic: NGUI Click and Touch Event [SOLVED]  (Read 4021 times)

coxy17

  • Beta Group
  • Sr. Member
  • *
  • Posts: 355
NGUI Click and Touch Event [SOLVED]
« on: November 09, 2014, 12:26:54 PM »
Hi, i am in the process of building my game and have been using the GUI that comes with Unity. Ive decided to go with NGUI and slowly trying to switch from unity GUI to NGUI. I have managed to create the buttons using sprites and have them on my screen ok.

All i have to do now is add events to NGUI to talk to playmaker FSM, its not easy to find how to do this? how do i link each event to my FSM (already setup) from each button on NGUI?

ive attached my unity GUI setup using 'Touch GUI Event' just need to know what to change or to add to the button?

hope im making sense

Nick
« Last Edit: November 10, 2014, 07:36:37 AM by coxy17 »

coxy17

  • Beta Group
  • Sr. Member
  • *
  • Posts: 355
Re: NGUI Click and Touch Event
« Reply #1 on: November 10, 2014, 07:36:21 AM »
figured it out myself. all i needed to do was add the ngui events to playmaker script onto each button

weilies

  • Junior Playmaker
  • **
  • Posts: 74
Re: NGUI Click and Touch Event [SOLVED]
« Reply #2 on: February 07, 2015, 08:00:25 PM »
hi coxy17,

can provide some input?
I am currently stuck here
http://hutonggames.com/playmakerforum/index.php?topic=9495.0


coxy17

  • Beta Group
  • Sr. Member
  • *
  • Posts: 355
Re: NGUI Click and Touch Event [SOLVED]
« Reply #3 on: February 09, 2015, 03:36:47 AM »
ok ill take a look