Warning: Game scripts or other custom code contains OnMouse_ event handlers

Hi,

After upgrading to Unity 4, I am getting this warning when building for iOS.

Game scripts or other custom code contains OnMouse_ event handlers. Presence of such handlers might impact performance on handheld devices.
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

My code contains only OnMouseDown() - for example, on buttons - and I have a small attached script that converts touches to OnMouseDown()

Should I be worried? Replace my method with something else?

Does anyone have more information about what exactly is the impact on performance? Which handlers?

I don’t think iOS support OnMouse events. Try GetTouch.

I agree - this check is nonsense.

It gets even funnier because I don’t use OnMouseX method names with MonoBehaviours, but inside my framework code. The method only has the same name: OnMouseDown, OnMouseMove etc. (usual naming convention for event handlers on any platform).

I believe Unity should drop this check altogether, or provide a switch to turn this notification OFF.

1191805--46889--$Screen Shot 2013-03-14 at 11.49.33 PM.png

I don’t know about iOS, but Android sure supports OnMouse nowadays.

In any case, I’ve adapted a script to “remove” the warning: http://wiki.unity3d.com/index.php/OnTouch

If this works on iOS, I wonder why we still get the warning and what it means by “might impact performance.