playMaker

Author Topic: Prevent click on UI to affect game objects in scene(PLAYMAKER)?  (Read 1979 times)

Bipolar

  • Junior Playmaker
  • **
  • Posts: 68
Prevent click on UI to affect game objects in scene(PLAYMAKER)?
« on: February 18, 2018, 11:34:47 AM »
Hi, It should possible blocking the tile placement while the mouse is pointing the GUI Buttons?

This in Playmaker only, not by scripts.

Maybe someone already asked this? Sorry but the search tab had found nothing.

antibob

  • Playmaker Newbie
  • *
  • Posts: 24
    • BillsClass
Re: Prevent click on UI to affect game objects in scene(PLAYMAKER)?
« Reply #1 on: February 18, 2018, 01:12:48 PM »
You could deactivate the "Button Script" component with a "Set Property" action. Just drag the button script component title into a state and choose "enabled" and set it unchecked/false.

You could probably do the same with the "recast target" in the same script.

Bipolar

  • Junior Playmaker
  • **
  • Posts: 68
Re: Prevent click on UI to affect game objects in scene(PLAYMAKER)?
« Reply #2 on: February 18, 2018, 01:20:50 PM »
You could deactivate the "Button Script" component with a "Set Property" action. Just drag the button script component title into a state and choose "enabled" and set it unchecked/false.

You could probably do the same with the "recast target" in the same script.

Sorry, I explained me badly.

What you see is a grid where you can to build by pointing the area with the cursor.
The fact now is the buttons enter in conflict with the placer.
(behind the highlighted button there's the green tile placer).

To proceed I need to avoid the tile placer working while the cursor is pointing an UI element.

Bipolar

  • Junior Playmaker
  • **
  • Posts: 68
Re: Prevent click on UI to affect game objects in scene(PLAYMAKER)?
« Reply #3 on: February 18, 2018, 03:06:22 PM »
The problem seems to be exactly this:

http://hutonggames.com/playmakerforum/index.php?topic=3683.0

With the difference my cursor has to disable the tile placer behind the GUI just by pass the cursor above the clickable buttons.
« Last Edit: February 18, 2018, 03:10:25 PM by Bipolar »