playMaker

Author Topic: [SOLVED] Mouse enter/down/etc.. not working with 2D/mobile Project ?  (Read 267 times)

lmon92

  • Playmaker Newbie
  • *
  • Posts: 15
Hi,
I did some tutorials using a 3D cube using global events like Mouse enter -  changing cube color as ex , same leaving with mouse exit -.
I'm now trying to achieve the same with a 2D Android project and can't get any global events triggered when I move my mouse over an object. Is there a trick for 2D/mobile ?
Here is my FSM
https://ibb.co/PYfDZZq
And the "On Enter" for ex :
"https://i.ibb.co/2txD7G6/2S2.png
It's working in 3D, hence my question ?
Thanks  !
« Last Edit: October 19, 2023, 11:15:23 AM by lmon92 »

lmon92

  • Playmaker Newbie
  • *
  • Posts: 15
[SOLVED] Re: Mouse enter/down/etc.. not working with 2D/mobile Project ?
« Reply #1 on: October 19, 2023, 11:14:43 AM »
Solved through Discord :
awimages are canvas,  its 2d. but its not "2d" to 3d games
normally 2d games, use sprites without a canvas

mouse enter and those, is done via raycasting to colliders.  works in 3d and 2d.  but it wont work in canvas.  for canvas you would need PointerEnter