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

#if UNITY_IOS - disables everything in Visual Studio

$
0
0
Hi, I have no idea what's going on, but when I use platform dependant compilation Video Studio goes nuts. I set up this super simple bit of code in a class: Vector3 motion = new Vector3(); #if UNITY_EDITOR || UNITY_STANDALONE motion.x = Input.GetAxisRaw("Horizontal"); motion.y = 0f; motion.z = Input.GetAxisRaw("Vertical"); #endif #if UNITY_IOS motion.x = Input.acceleration.x; #endif but while I'm in between "#if UNITY_IOS" and "#endif" Visual Studio just gives up, it greys out everything, disables all auto-completion and acts like I'm writing a comment. See image (line-number 20). How can I develop code for iOS without VS going bonkers? I am using macOS. ![alt text][1] [1]: /storage/temp/107120-screen-shot-2017-12-10-at-162146.png

Viewing all articles
Browse latest Browse all 4709

Trending Articles



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