Turning off the Main Camera

I have a client with a dedicated server architecture. When you begin the program, you have the option of choosing the dedicated server mode.

Is there a way to turn of the main camera when I switch to this mode?

I don't need the server to waste cpu time drawing what's going on. Thanks!

You can startup the applications in background with command line option `-batchmode`. If you need a gui to start with, you can either turn off the camera by using `Camera.main` to access the main camera. So, `Camera.main.enabled = false` would hide the camera.

as jaap said (and i voted up). you should ask this in an external application or small script or batch file and then run unity in headless mode as a background application without interface to get the best performance but to enable any object or script including the camera you can use the enabled property.