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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -