playMaker

Author Topic: Owner needs Collider when 2D Collider present  (Read 6771 times)

Ulnari

  • Playmaker Newbie
  • *
  • Posts: 2
Owner needs Collider when 2D Collider present
« on: May 01, 2014, 05:55:28 PM »
Playmaker is displaying the error "Owner needs a Collider or GUI Element to respond to mouse events!" even when a 2D Collider is present (e.g.: Box Collider 2D).

Transition Event: Any mouse event (e.g. MOUSE DOWN)

Error is displayed regardless if Playmaker Unity 2D package is imported or not. Playmaker Unity 2D is added to the scene, 2D Proxy is added to the Gameobject.

A workaround is probably to catch the event with the Mouse Pick 2D Event, then trigger a FINISHED event, but it wont help to trigger the corresponding mouse event from Mouse Pick 2D Event.

Playmaker Version: 1.7.7.f6


Ulnari

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Owner needs Collider when 2D Collider present
« Reply #1 on: May 01, 2014, 06:01:52 PM »
Error message disappears when scene is run. Seems to be an update issue due Playermaker 2D package not recognized immediately.

Edit: Error message has re-appeared in edit mode ... it actually runs fine, click is recognized when running the scene, so it is not really breaking anything, just annoying.
« Last Edit: May 02, 2014, 05:15:42 AM by Ulnari »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Owner needs Collider when 2D Collider present
« Reply #2 on: August 05, 2014, 07:03:35 AM »
Hi,

 yes, as the Unity 2d package is something external to PlayMaker current build. Hopefully Unity 2d will be integrated soon in PlayMaker dll itself.

 Bye,

 Jean

pietwelve

  • Junior Playmaker
  • **
  • Posts: 70
Re: Owner needs Collider when 2D Collider present
« Reply #3 on: May 24, 2017, 03:44:09 PM »
Hi,
I've got the exact same problem with the 1.8.4.f5 version.
Is there a new workaround or solution ?
Thanks !

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Owner needs Collider when 2D Collider present
« Reply #4 on: June 19, 2017, 05:20:18 AM »
Hi,

 I can't reproduce this, Can you make a screencast showing the problem, it will help understanding what are the steps to repro this. Thanks :)

 Bye,

 Jean

JohanLundmark

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Owner needs Collider when 2D Collider present
« Reply #5 on: August 31, 2017, 08:29:46 AM »
Hi, new forum member here. I am having this same issue and a google search brought me to this thread. However for me its a 3d collider and mouse pick event that is causing issues. Here is a screenshot of the setup:
https://www.dropbox.com/s/njbbzb42gz1ubda/Screenshot%202017-08-31%2014.21.27.png?dl=0

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Owner needs Collider when 2D Collider present
« Reply #6 on: September 04, 2017, 03:08:29 AM »
Hi,

 what issue exactly do you get with this setup?

 Bye,

 Jean

JohanLundmark

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Owner needs Collider when 2D Collider present
« Reply #7 on: September 07, 2017, 04:12:28 PM »
Same as the original author. Playmaker complains that there is no collision on the object (which it clearly has). Running the game, everything works fine and there are no errors reported. It just seems confused and throws that error when in editor mode.

I dont really have any issues with it since everything runs just fine. just thought I would report this similar behavior :)

Laralyn

  • Playmaker Newbie
  • *
  • Posts: 21
Re: Owner needs Collider when 2D Collider present
« Reply #8 on: April 20, 2018, 09:21:24 PM »
I'm also having this issue... and since I have a lot of click-able 2D objects on screen, it means I get a lot of incorrect error messages that make it challenging to see actual editor errors.

My setup is super simple:

2D sprite with "Box Collider 2D" attached
MOUSE DOWN and MOUSE ENTER transitions
Creates this error: "Owner needs a collider or GUI element to respond to mouse events!"

It has a 2D collider attached and works correctly when run--so it's just about getting rid of that error message.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Owner needs Collider when 2D Collider present
« Reply #9 on: April 24, 2018, 01:52:15 AM »
Hi,

 ok, could you extract that scene or make a repro case, and I'll have a look, or can you make screenshots or screencast, showing your fsm setup, your gameobject setup, etc?

your fsm is on that 2d sprite right?

 Bye,

 Jean

Laralyn

  • Playmaker Newbie
  • *
  • Posts: 21
Re: Owner needs Collider when 2D Collider present
« Reply #10 on: April 26, 2018, 10:59:01 PM »
I just sent a repro project link via message. Thanks!