Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Mulbin on May 29, 2016, 06:12:03 PM

Title: Mouse Pick Event doesn't seem to do anything [SOLVED]
Post by: Mulbin on May 29, 2016, 06:12:03 PM
I have an object, with a collider and I'm attempting to use Mouse Pick Event (Mouse Down) to trigger the transition.

I have a layer mask with the correct layer selected (so thats not the probelm)... but nothing.  Is the feature working?  Placing the mouse over the object and clicking has no effect at all either in the game or in the Playmaker window.
Title: Re: Mouse Pick Event doesn't seem to do anything
Post by: Alex Chouls on May 29, 2016, 10:08:09 PM
Just tested here and it's working as expected.

What version of Unity and Playmaker are you using?
What platform are you building for?

Double check that the Ray Distance is big enough that the ray can reach the object.
Double check that no other collider is between the mouse and the object.
Title: Re: Mouse Pick Event doesn't seem to do anything
Post by: Mulbin on June 04, 2016, 07:08:33 PM
Hi, it's sorted now.  Looks like the camera has to be labeled as main for it to function.
Title: Re: Mouse Pick Event doesn't seem to do anything
Post by: Alex Chouls on June 04, 2016, 07:33:26 PM
Ah yes. I remember adding that to the online docs, but I'll add it to the tooltip also.