Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: playmakerNewb on March 06, 2012, 04:57:09 PM

Title: Help with Playmaker and OnMouseDown events
Post by: playmakerNewb on March 06, 2012, 04:57:09 PM
Currently I have gameobjects in my scene.  They have colliders.  I'm able to listen for OnMouseDown events in playmaker and fire appropriate actions.  This works completely fine in the Unity editor in free aspect.

The problem comes when I make a build.  Some of my objects will no longer respond to the mouse clicks.  I've determined it is likely a bug in Unity and I need a workaround.

Is it possible to fire an on mouse down playmaker event via code?  My workaround involves raycasting from the mouse cursor position, hitting an object, and doing an on mouse down event.

Thoughts?
Title: Re: Help with Playmaker and OnMouseDown events
Post by: Alex Chouls on March 14, 2012, 01:22:48 AM
Have you tried the Mouse Pick action? That might save you a couple of steps...