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?
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.