Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: Ulnari on May 01, 2014, 05:55:28 PM

Title: Owner needs Collider when 2D Collider present
Post by: Ulnari 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

Title: Re: Owner needs Collider when 2D Collider present
Post by: Ulnari 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.
Title: Re: Owner needs Collider when 2D Collider present
Post by: jeanfabre 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
Title: Re: Owner needs Collider when 2D Collider present
Post by: pietwelve 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 !
Title: Re: Owner needs Collider when 2D Collider present
Post by: jeanfabre 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
Title: Re: Owner needs Collider when 2D Collider present
Post by: JohanLundmark 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
Title: Re: Owner needs Collider when 2D Collider present
Post by: jeanfabre on September 04, 2017, 03:08:29 AM
Hi,

 what issue exactly do you get with this setup?

 Bye,

 Jean
Title: Re: Owner needs Collider when 2D Collider present
Post by: JohanLundmark 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 :)
Title: Re: Owner needs Collider when 2D Collider present
Post by: Laralyn 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.
Title: Re: Owner needs Collider when 2D Collider present
Post by: jeanfabre 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
Title: Re: Owner needs Collider when 2D Collider present
Post by: Laralyn on April 26, 2018, 10:59:01 PM
I just sent a repro project link via message. Thanks!