Forum Discussion
grindinggear
6 months agoHonored Guest
How to set up colocation with server ?
I know colocation default use local matchmaking with startasHost , Guest to multiplayer . How can i set up colocation with netcode startServer and startClient ?
1 Reply
Replies have been turned off for this discussion
- ycliu613Meta Employee
Hey grindinggear, thanks for the question about Multiplayer building blocks. Could you share more about what you want to achieve with netcode startServer and startClient?
If you choose the Unity Netcode flavour of the Colocation block, it already starts a server under the hood for the first player, and start as clients for subsequent players. If you don't want to automatically start, you can toggle off the option in the Colocation block components and call the public start as host/guest functions yourself by hooking up to your UIs etc.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 9 months ago
- 2 months ago
- 8 months ago