playMaker

Author Topic: PLAYMAKER / NGUI OnMouseUp  (Read 2121 times)

_adamturnbull

  • Playmaker Newbie
  • *
  • Posts: 18
PLAYMAKER / NGUI OnMouseUp
« on: May 06, 2014, 04:03:31 PM »
Hi,

I'm trying to replace my current GUI with NGUI and I need to detect when the mouse is up. I've used the NGUI / ON PRESS function but how do I detect when the mouse is no longer down?

I've read its something to do with the OnPress(false) but is there an example someone can give me as I'm pretty new to NGUI.

Cheers,
Adam

Martin-Vaupell

  • Junior Playmaker
  • **
  • Posts: 70
  • Creating CarbonDiOxide
    • Evisystems
Re: PLAYMAKER / NGUI OnMouseUp
« Reply #1 on: May 07, 2014, 03:19:38 AM »


if using scripts
Are you using PlayMaker NGUI scripts --> Asset Store

true
If so, then it's rather easy, just select the option shown in the screenshot I'm attaching.

In the screenshot I hoover over then even you are looking/asking for.

else
However If you're not using the script addon, you would have 2 options
either write an action yourself or find one.
Or access the function via scripting like NGUI was originally designed for.
NGUI add's the scripts automatically when you assign a sprite as a button,
you just need to perform the checks for when the user is accessing the GUI.

end if

play_edu

  • Full Member
  • ***
  • Posts: 116
Re: PLAYMAKER / NGUI OnMouseUp
« Reply #2 on: May 07, 2014, 03:25:34 AM »