Pre-Unity3, a project i worked on had the Input class extended, however, after upgrading to the beta, i’ve noticed that Input is now sealed. I also couldn’t help but notice that a ‘WrapperlessIcall’ attribute has been added to many of the methods within Input.
So, i guess my question is, what is this WrapperlessIcall attribute?
@Dantus Thanks for the link. But, sorry that I didn’t make it clear enough.
I mean, could someone please explain how does Unity use the class WrapperlessIcall in their codes?
I know WrapperlessIcall usually shows up with with MethodImpl in Unity codes, and they’re about calling internal native code, but what is the purpose of WrapperlessIcall, exactly?
Like, Unity maybe use this attribute somewhere in their codes to distinguish the tagged methods, and maybe run automatic register process (mono_add_internal_call) for those tagged methods?
If I remember correctly, they improved the managed to native call speed in Unity 3. It could be that they introduced a new attribute for that. But at the end it doesn’t matter, because we can’t use it anyways…