Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: lmon92 on October 19, 2023, 09:30:06 AM

Title: [SOLVED] Mouse enter/down/etc.. not working with 2D/mobile Project ?
Post by: lmon92 on October 19, 2023, 09:30:06 AM
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 (https://ibb.co/PYfDZZq)
And the "On Enter" for ex :
"https://i.ibb.co/2txD7G6/2S2.png (http://"https://i.ibb.co/2txD7G6/2S2.png)
It's working in 3D, hence my question ?
Thanks  !
Title: [SOLVED] Re: Mouse enter/down/etc.. not working with 2D/mobile Project ?
Post by: lmon92 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