StateMachineBehavior doesn't work in Unity5.3 WebGL

Hi Unity team,

My game exported with Unity5.3 WebL failed running and following errors were shown in Javascript console:

Script error (CreateBoard): OnStateEnter() can not take parameters.
Script error (CreateBoard): OnStateExit() can not take parameters.
Script error (CreateBoard): OnStateUpdate() can not take parameters.

However, it runs well when exported with Unity5.2.

My class “CreateBoard” extends the class “StateMachineBehavior”. So it seems that the method signature in StateMachineBehavior has been changed in Unity5.3.

Can you take a look at this issue?

Thanks,
Peter

I just created a simple test with a StateMachineBehavior in 5.3f4. I don’t get any error and the callbacks are executed correctly. If you have a simple repro project, feel free to submit it in a bug report and post the bug number here.

It turns out, this is actually a bug but it’s only reproducible if Stripping is enabled. Fix is coming in 5.3 patch 1.

1 Like

itself and also in Xcode

Script error (FadeAnimatorF): OnStateUpdate() can not take parameters.
(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoScriptCache.cpp Line: 411)
Script error (FadeAnimatorF): OnStateMove() can not take parameters.
(Filename: /Users/builduser/buildslave/unity/build/Runtime/Mono/MonoScriptCache.cpp Line: 411)
Script error (FadeAnimatorF): OnStateIK() can not take parameters…

it worked on Unity 5.2 correctly
when will the patch ?

quick update to let you know that the next release will be 5.3.1 (not the patch) and the fix will not be included.

ok. when are you fix this bug? we can’t release update.

give me please a link to bug tracker of this issue, so I can keep track of it

753610