Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

Feedback Improve "Game scripts or other custom code contains OnMouse_ event handlers" warning

Discussion in 'Editor & General Support' started by Peter77, Jul 7, 2020.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,162
    While building a Player for iOS, Unity outputs the following warning in one of my projects:
    Code (CSharp):
    1. Game scripts or other custom code contains OnMouse_ event handlers. Presence of such handlers might impact performance on handheld devices.
    2. UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions, Boolean)
    3. UnityEditor.BuildPipeline:BuildPlayerInternal(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline.bindings.cs:358)
    4. UnityEditor.BuildPipeline:BuildPlayer(String[], String, String, BuildTargetGroup, BuildTarget, BuildOptions) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline.bindings.cs:257)
    5. UnityEditor.BuildPipeline:BuildPlayer(BuildPlayerOptions) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline.bindings.cs:240)
    Please include information what files actually contain the OnMouse_ event handlers.
     
    PraetorBlue likes this.
unityunity