playMaker

Author Topic: clicking on UI objects  (Read 1163 times)

Fictive

  • Playmaker Newbie
  • *
  • Posts: 12
clicking on UI objects
« on: October 27, 2021, 08:16:23 PM »
How do I select UI objects with the mouse pointer?
I'm using a canvas with game objects inside of it.
I tried using the "screen pick 2d" and "UI is pointer over UI object" actions but nothing is happening. have a hitbox on the game object that I'm trying to select in the canvas but I'm not sure that matters.

any thoughts or suggestions would be appreciated.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: clicking on UI objects
« Reply #1 on: October 31, 2021, 09:25:15 AM »
Hi.

screen pick is for 2d not ui.

UI On Pointer Click Event should work.

what can be happening is that a panel (even if transparant) is on top of what you want to select.

On Image components you have a check box 'Raycast Target' uncheck or remove the component completely if not needed.