- Home /
How to compile code only for both Android and iOS?
I know about the #if UNITY_ANDROID and #if UNITY_IOS, but how do you combine them both? I've searched on google and on here and can't find an answer. I've tried doing one above the other but that doesn't seem to work.
Comment
Best Answer
Answer by tanoshimi · Oct 09, 2016 at 06:17 PM
#if UNITY_ANDROID || UNITY_IOS
Okay. I thought I tried that before and it gave an error. I must've been high because it works now, thanks!
Your answer
Follow this Question
Related Questions
How to change type of vibration on Android/IOS? 3 Answers
Android build not working properly 0 Answers
Face Tracking using openCV is not working accurately 0 Answers
iOS email sending 0 Answers
Access web-hosted game from iOS mobile? 0 Answers