playMaker

Author Topic: Mouse Pick Event doesn't seem to do anything [SOLVED]  (Read 2605 times)

Mulbin

  • Junior Playmaker
  • **
  • Posts: 90
Mouse Pick Event doesn't seem to do anything [SOLVED]
« 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.
« Last Edit: June 04, 2016, 07:33:40 PM by Alex Chouls »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Mouse Pick Event doesn't seem to do anything
« Reply #1 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.

Mulbin

  • Junior Playmaker
  • **
  • Posts: 90
Re: Mouse Pick Event doesn't seem to do anything
« Reply #2 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.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Mouse Pick Event doesn't seem to do anything
« Reply #3 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.