Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Conditionally showing virtual joysticks on iOS vs Editor

$
0
0
I'm trying to conditionally show virtual joysticks only when running on an iOS device, and use keys instead in the Editor on my laptop. I tried the following, and in MonoDevelop the #else clause is dimmed out and I'm not seeing the virtual joysticks on iOS. #if UNITY_EDITOR leftJoystick.SetActive(false); rightScreenTap.SetActive(false); #else leftJoystick.SetActive(true); rightScreenTap.SetActive(true); #endif Does anyone know the correct way to do this ? Thanks

Viewing all articles
Browse latest Browse all 4709

Trending Articles



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