playMaker

Author Topic: Help with Playmaker and OnMouseDown events  (Read 3952 times)

playmakerNewb

  • Playmaker Newbie
  • *
  • Posts: 15
Help with Playmaker and OnMouseDown events
« 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?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: Help with Playmaker and OnMouseDown events
« Reply #1 on: March 14, 2012, 01:22:48 AM »
Have you tried the Mouse Pick action? That might save you a couple of steps...