Author Topic: I can't get Touch Object To Work  (Read 1795 times)


  • Playmaker Newbie
  • *
  • Posts: 9
    • View Profile
I can't get Touch Object To Work
« on: January 05, 2012, 12:05:36 AM »
I hooked up a cube to send an event to pass to a new state when 'Touch Object' happens.  The event never triggers, and I get this error.

UnityEngine Camera_ScreenPointToRay (Vector 3 position)
HutonGames_Playmaker_Actions.TouchObjectEven t.OnUpdate 0 (at Assets/Playmaker/Actions/TouchObjectEvents.Cs:89)
HutongGames_Playmaker.Fsm.UpdateState (HutongGames. PlayMaker.FsmState state)

What does this mean, and how can I get Touch object to work?


Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3634
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: I can't get Touch Object To Work
« Reply #1 on: January 14, 2012, 05:42:07 PM »
Sorry for the delayed response. My guess is that you don't have a camera tagged as the MainCamera. Try adding that tag to the camera.

I'll add some error checking to the action to check for this.

Let me know if that fixes it.