playMaker

Author Topic: "Touch Event Not On U Gui" action [SOLVED]  (Read 284 times)

asahiro84

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
"Touch Event Not On U Gui" action [SOLVED]
« on: January 25, 2019, 09:43:25 AM »
I have a NavMesh agent that moves to click/tap position.
At the same time I want it to ignore clicks/taps on UI.

I created a test scene with a canvas button, please see screenshots attached.
"U Gui Check Pointer Over Gui" for mouse works exactly as intended: the player moves to click position whenever I click anywhere except the button.

"Touch Event Not On U Gui" doesn't seem to work at all.
Is it the action that doesn't work or touch requires some additional checks or components?
« Last Edit: January 29, 2019, 12:56:39 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14126
  • Official Playmaker Support
    • View Profile
Re: "Touch Event Not On U Gui" action
« Reply #1 on: January 27, 2019, 11:13:24 PM »
Hi,

Well, it's because this action ("Touch Event Not On U Gui") worked only for touch, but you can re download it, I have added support for left mouse :)

a pointer can be anything, it's a UI abstract, while a Touch is different and related to touch screens only.

but as I said, I added this case so now it will work with left mouse.


Bye,

 Jean

asahiro84

  • Playmaker Newbie
  • *
  • Posts: 4
    • View Profile
Re: "Touch Event Not On U Gui" action
« Reply #2 on: January 28, 2019, 04:57:13 PM »
Hi Jean, thank you for the reply and for the action update!