Setting Game Up for Multiple Platforms

OK, so this should be obvious, but I am not finding any documentation on it.

After my game is built, and I need to specialize each build for its particular device, how do I do that?

Do I make multiple copies of the same project? If so, how?

Examples of things I need to specialize are input, camera zoom, and screen orientation.

Probably the best way I’ve seen is to copy all your scripts that are platform dependant and do a check for certain criteria.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    void Start() {
        if (Application.platform == RuntimePlatform.WindowsPlayer)
            print("Do something special here!");

Hello There,

You don’t have to do anything special for each platform. You can just build your project. If you are building for mobile you can’t use the crazy shaders you were using for desktop. In that case you would have to switch them out for the new platform. There are a few settings you can tweak in player settings in the Unity Menu.

There’s a forum thread I found that’s dedicated to answering this question: