You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ICallHandler did not intercept class with HandlerAttribute after upgrading from Unity 4 to Unity 5 #27
Hi @ENikS, I have create a repo here.
You may build it and run either Unity4 or Unity5 version.
You can see that in Unity5 Version, the CallHandler did not get invoked.
edit...
I found something interesting, In Unity5 project, If I put the CallHandler and AddNewExtension before Services Registration, everything works fine... wired...
changed the title [-][Question] Interceptor did not work after upgrading from 4.0 to 5.10[/-][+][Question] ICallHandler did not intercept class with HandlerAttribute after upgrading from Unity 4 to Unity 5[/+]on Mar 26, 2019
changed the title [-][Question] ICallHandler did not intercept class with HandlerAttribute after upgrading from Unity 4 to Unity 5[/-][+]ICallHandler did not intercept class with HandlerAttribute after upgrading from Unity 4 to Unity 5[/+]on Mar 26, 2019
I am surprised this was not fixed after so much time. The problem is that people migration to 5.x may inadvertently run into this issue. There is no much point into supporting quite an old syntax if it does not behaves as expected.
FWIW, I got a similar case working and I described the changes here
Activity
ENikS commentedon Mar 25, 2019
raytangRT commentedon Mar 25, 2019
Hi @ENikS, I have create a repo here.
You may build it and run either Unity4 or Unity5 version.
You can see that in Unity5 Version, the CallHandler did not get invoked.
edit...


I found something interesting, In Unity5 project, If I put the CallHandler and AddNewExtension before
Services Registration, everything works fine... wired...ENikS commentedon Mar 25, 2019
@raytangRT
I need a Unity Test that I could add to other regression tests. Something like this
raytangRT commentedon Mar 26, 2019
@ENikS I will make one once I get home tonite.
[-][Question] Interceptor did not work after upgrading from 4.0 to 5.10[/-][+][Question] ICallHandler did not intercept class with HandlerAttribute after upgrading from Unity 4 to Unity 5[/+][-][Question] ICallHandler did not intercept class with HandlerAttribute after upgrading from Unity 4 to Unity 5[/-][+]ICallHandler did not intercept class with HandlerAttribute after upgrading from Unity 4 to Unity 5[/+]raytangRT commentedon Mar 26, 2019
@ENikS Please find the attached the test case, thanks
Issue27CallHandlerNotBeingInvoke.zip
gerardog commentedon Jun 19, 2020
I am surprised this was not fixed after so much time. The problem is that people migration to 5.x may inadvertently run into this issue. There is no much point into supporting quite an old syntax if it does not behaves as expected.
FWIW, I got a similar case working and I described the changes here
ENikS commentedon Jun 19, 2020
Would you like to contribute the fix? I am sure people will appreciate it.