Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: braincase on June 30, 2021, 10:25:08 PM

Title: EventHandler component problem
Post by: braincase on June 30, 2021, 10:25:08 PM
Hi. Couple of weeks ago, I found some Prefab's actions don't work on my test phone. they worked good on computer editor.
I found 'Event handler' components were problem.(trigger stay, late update...)
So I manually attached some event handlers and dragged right FSM component on it.

After build, i can see the problem was solved.
I did it for several days whenever i found problem on test build.

..attaching event handler by myself...is very annoying.(i have to check actions very carefully and read the codes. there are so many actions )
As far as i know, it worked automatically. But not now.

my playmaker version is 1.9.0.
I know it's not the latest but not very old one.
I found latest version has some problems with my game.(new version changed much..?)

How can i solve the event handler problem?
Title: Re: EventHandler component problem
Post by: djaydino on July 01, 2021, 07:24:32 AM
Hi.
There are some tools in the playmaker menu, have you tried using the update and preprocess.

Do you have some Get/Set Properties actions in your project?
If so you might want to use 'Linker Wizard' (http://hutonggames.com/playmakerforum/index.php?topic=11126.0)
Title: Re: EventHandler component problem
Post by: Sly on May 22, 2024, 04:16:33 PM
Hello,

I have the exact same problem.
The EventHandler component has a problem for me. It's working in editor and not in build.

The only way I found to fix this is to deactivate "Event Handler Component" on FSM (using unity debug mode, see picture).
I didn't find it as a "clean" fix. And it's pretty annoying to do it for all my objects and characters.

Is there a real clean way to fix this?

(Unity 2021 - Playmaker 1.9.8 )
Title: Re: EventHandler component problem
Post by: Sly on June 18, 2024, 09:26:01 AM
I spoke with Alex and He confirmed to me there is a problem.
So, they are working on it  :)
Title: Re: EventHandler component problem
Post by: Hayato on December 11, 2024, 12:06:49 PM
I’ve encountered this issue in the past, but I haven’t experienced it since a certain point in time.

However, after upgrading my project to Unity 6 today, the issue has returned.

It seems that objects placed directly in the scene are unaffected, but prefabs instantiated at runtime are encountering this problem.

For now, I’m working around it by manually adding the TriggerEvent2D component to each prefab and assigning the TargetFSMs. However, this approach is pretty annoying.
I hope this issue can be resolved soon.
Thank you!

(Unity 6000.0.30f1 / Playmaker 1.9.8f1)