c# - Game scripts or other custom code contains OnMouse_ event handlers -



c# - Game scripts or other custom code contains OnMouse_ event handlers -

i need little help. maintain getting warning when im building game android.

game scripts or other custom code contains onmouse_ event handlers. presence of such handlers might impact performance on handheld devices. unityeditor.hostview:ongui()

do know how rid of this?

the controller have has mouse event.

public class buttononclickcontroller : monobehaviour { void onmouseup() { application.quit(); } }

although warning, not ignore it. have unintended effects on game.

it mutual on android builds tend test in editor. can prepare adding this:

#if unity_editor void onmouseup() { } #endif

then add together different code block android.

#if unity_android // handle screen touches here. #endif

what doing here separating editor code android code. in other words, wouldn't want mouse input on android device.

c# android performance unity3d

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -