Hi, is there any way to detect the type of device to use touch instead of mouse ?
if (computer) do something; // or if exist mouse ?
if (iOS) do something;
thanks
Hi, is there any way to detect the type of device to use touch instead of mouse ?
if (computer) do something; // or if exist mouse ?
if (iOS) do something;
thanks
Perhaps this is what you’re seeking?
http://unity3d.com/support/documentation/Manual/Platform%20Dependent%20Compilation.html
Either that or this Unity - Scripting API: Application.platform
thanks Aerozo, it works perfectly!