miwarnec / DOTSNET

Public DOTSNET issue tracker
20 stars 0 forks source link

Server Only Build #33

Closed shredder2500 closed 3 years ago

shredder2500 commented 4 years ago

When building if I have clicked Server Build I would expect the client world to not be created at all. I currently have three Scenes to get around this. Client Only, Server Only, and Both (Development Scene) but the client world still gets created in the server only one with like 3 or 4 systems.

I have been able to change this my self by adding #if UNITY_EDITOR || UNITY_SERVER around the create server world call in the bootstrap class, also changed Covert Network Entity so that it can handle server world being null.

Also would be nice to have Client only builds. maybe UNITY_CLIENT?

miwarnec commented 3 years ago

thanks, will look into it. should be useful indeed.

miwarnec commented 3 years ago

done. server builds will not update the client world anymore in next version.

for convenience, the client world still exists though. otherwise we would need #if UNITY_SERVER checks all over the place: bootstrap, converttoentity, authoring, etc.

a lot of authoring components have a one time Awake() call to ClientWorld. let's keep it, but simply not update it.

ease of use!