Quantcast
Channel: Answers by "sudhir_kotila"
Viewing all articles
Browse latest Browse all 31

Answer by sudhir_kotila

$
0
0
You can check your device screen resolution : if (Screen.width == 1024 || Screen.width == 2048) { //Do your stuff for //iPAD 1024*768 OR 2048*1536 } else if (Screen.width == 960) { //Do your stuff for //iPOD & iPHONE 960*640 } else if (Screen.width == 1136) { //iPOD & iPHONE 1136*940 //Do your stuff for //iPOD & iPHONE 1136*940 } You can check your device orientation : if (Input.deviceOrientation == DeviceOrientation.LandscapeLeft) { //Do your stuff here... }

Viewing all articles
Browse latest Browse all 31

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>