- Home /
Can you build both PC and iPhone?
There is a source using iPhoneKeyboard, but uses PC use and both for iPhone.
Because it is troublesome to change a source one by one, both want to go in the same source,
but an error appears in a part of iPhoneKeyboard when I build with a PC.
When I build with a PC, I want to build in defiance of the above, but is there a method?
By the way, if it is C++
#ifdef XXX
#endif
By the above, I can take it off.
How will you do it in Unity?
It may be a rudimentary question, but thank you
You need to be clearer than that.
What error appears?
You can check the platform with Application.platform to detect that.
Answer by Graham-Dunnett · Nov 07, 2011 at 05:12 PM
Please see:
http://unity3d.com/support/documentation/Manual/Platform%20Dependent%20Compilation.html
which explains how to ifdef code in Unity.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Help on iOS Build in the iPhone 1 Answer
Command line builds for iOS - pro only? 0 Answers
Unity iPhone - App Deployment Help 2 Answers
No PC Standalone Build in Unity 5.6 1 Answer