playMaker

Author Topic: MouseOver Doesn't work in build _ owner needs a collider or GUI Element [SOLVED]  (Read 2059 times)

pietwelve

  • Junior Playmaker
  • **
  • Posts: 70
    • View Profile
Hi,
I'm working on a 2D game. (playmaker 1.8.4, Unity 5.6.1)
A Lot of my animated 2D(sprite)Game-Objects have to respond to MouseOver Event.
They all have a 2D-Collider-component set as trigger. And often have 2 FSM.

It works like a charm in Unity Editor, even if states with Mouse-Over transitions display a warning and I've got lots of "owner needs a collider or GUI Element to respond to mouse events!" errors in my error check window.
(all objects have 2D-Collider-component set as trigger though !)

Unfortunately it does not work in the Build.

- Any idea to have it work in Build ?
- how can i get rid of the ""owner needs a collider or GUI Element to respond to mouse events!" errors" ?

Thanks a lot :-)



« Last Edit: October 12, 2017, 03:44:13 AM by djaydino »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4817
    • View Profile
    • jinxtergames
Re: MouseOver Doesn't work in build _ owner needs a collider or GUI Element
« Reply #1 on: September 29, 2017, 07:04:45 PM »
Hi,
I tested 2D Object(sprite) with several colliders, but i can't repo the warning that you are getting.
can you show a video or images on this and from your fsm/states/action

Are you using Get/Set Property actions?

What platform are you building for?

pietwelve

  • Junior Playmaker
  • **
  • Posts: 70
    • View Profile
Re: MouseOver Doesn't work in build _ owner needs a collider or GUI Element
« Reply #2 on: September 30, 2017, 01:54:18 PM »
Hi,
Thanks a lot for your answer  :)

I do use Get/Set Property actions !
Building for PC/Mac Standalone
Please find screenshots attached (grouped in Photoshop)
I can create more images if you want !

pietwelve

  • Junior Playmaker
  • **
  • Posts: 70
    • View Profile
Re: MouseOver Doesn't work in build _ owner needs a collider or GUI Element
« Reply #3 on: September 30, 2017, 04:47:51 PM »
ok it looks like i get rid of errors (red circles on playmaker states) and that it works in Build when i do that :
- add a "Mouse Pick 2d Event" Action in the state
- replace System transition/event (Mouse Over, Mouse Exit...) with custom ones, like "MousePick2DEvent_Over" for example.

I'll will add more details to this post if i understand new stuff about this problem ...
Or if it stops working ;-)
thanks
« Last Edit: September 30, 2017, 05:04:46 PM by pietwelve »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4817
    • View Profile
    • jinxtergames
Re: MouseOver Doesn't work in build _ owner needs a collider or GUI Element
« Reply #4 on: September 30, 2017, 07:24:02 PM »
hi,
If you use get/set properties you need to use Linker Wizard
Else Get/Set properties tend to break when build.

But its better to find actions for it.

You can find many actions on the Ecosystem


I found the reason why it gives the errors,
it only checks 3d colliders.

but the errors wont harm.
it should work.
i will report to alex.
« Last Edit: September 30, 2017, 07:25:41 PM by djaydino »

pietwelve

  • Junior Playmaker
  • **
  • Posts: 70
    • View Profile
Re: MouseOver Doesn't work in build _ owner needs a collider or GUI Element
« Reply #5 on: October 03, 2017, 10:16:44 AM »
Hi,
Thanks for your input.
I will look into Linker Wizard and actions from the ecosystem :-)
bye

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4817
    • View Profile
    • jinxtergames
Re: MouseOver Doesn't work in build _ owner needs a collider or GUI Element
« Reply #6 on: October 03, 2017, 04:56:30 PM »
Hi,
If you can't find actions you can always request to make them or ask what you can use.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15082
  • Official Playmaker Support
    • View Profile
Re: MouseOver Doesn't work in build _ owner needs a collider or GUI Element
« Reply #7 on: October 11, 2017, 11:16:58 PM »
Hi,

 Is everything sorted on this thread? Just making sure we are not missing a potential PlayMaker bug here.

 Bye,

 Jean

pietwelve

  • Junior Playmaker
  • **
  • Posts: 70
    • View Profile
Re: MouseOver Doesn't work in build _ owner needs a collider or GUI Element
« Reply #8 on: October 12, 2017, 01:00:19 AM »
Hi Jean,

my post "september 30 4:47:51 PM" was the right solution for my problem.
hope it will help others...

bye