vote up 0 vote down
star

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!

flag

2 Answers

vote up 2 vote down
check

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.

link|flag
Thanks! I really appreciate the help. – Jason Jolley Feb 12 at 1:18
vote up 1 vote down

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.

link|flag
Thanks for the help :) – Jason Jolley Feb 12 at 1:19

Your Answer

Get an OpenID
or

Not the answer you're looking for? Browse other questions tagged or ask your own question.