Can the server and Client have a different scene?

Just started working on multiplayer for my game. I’m in the middle of writing a custom network manager, using most of the stock functions.

Just wondering if Unity can have a different scene for the client and server. It would have the exact same objects, just a different UI.

Just trying to work around having to spawn different UI for the client and server, as you can’t actually play on the server, I’m almost ready to start testing, just trying to avoid trying stuff I could find out by asking.

Thanks

I think you could technically do this if you overrode enough stuff but I don’t think it’s the way you want to go. You could try parenting all the UI stuff to a NetworkBehaviour and in OnStartServer deactivate / destroy all the children.

If it’s just the UI, a simple way would be to have two root canvases in the UI scene, and enable the one that’s needed depending on if it’s a client or server.

Yeah I was thinking about doing it that way, just wanted to know in case there was more stuff I might want to do later on as well.

Thanks guys.