- Home /
Do we need to write different code to different platforms??
I recently came across the 'switch platform' button in the build settings.So when I switch platforms (say from pc to android) should I modify/include seperate codes in my files??
Assume that while switching the platform, only the method of getting the inputs get changed(from key strokes to touch).So should I write a code to get touch as input or should I just click 'switch platform' in the build settings window and leave the rest to unity??
you will have to switch controls to touch (i think mouse input works on touch devices). Generally you wont have to change much. but of course some platforms support things & others don't.
if your doing multiplayer or networking, Windows Phone SD$$anonymous$$ has some frameworks missing. Last time i tried i could not save a file in Unity Web player locally. It probably still is the case.
When you switch errors may appear which will help you to where the problem is. Sometimes a few pop up when you try to build
Your answer