playMaker

Author Topic: When UI button is overlaping gameobject  (Read 1057 times)

ingumak

  • Playmaker Newbie
  • *
  • Posts: 20
When UI button is overlaping gameobject
« on: August 16, 2017, 10:29:26 AM »
Hi!
I have a little problem again. I have put a UI button in the scene, and it is overlaping to a game object that is interactive with the mouse button. Both are.
And now I have to click on the button and doesn´t work because the game object seems have priority. And only works the game object functions.
How can I solve this issue? Is any way to say that the button have priority over the game object?
Thanks!!

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: When UI button is overlaping gameobject
« Reply #1 on: August 16, 2017, 11:58:04 PM »
Does this sound like your issue: https://forum.unity3d.com/threads/preventing-ugui-mouse-click-from-passing-through-gui-controls.272114/

If so, I can try and help find a custom solution for you. We might need to modify one of the actions or write you a custom action for this.

Maybe djaydino might chime in later, as he may have seen this before.