can I test more than one player in the editor?
Can I test more than one player in the editor? Do I have to have a anctual build to test multiplayer? Because this seems time consuming if I want to iterate often 🙂
8 Replies
Hi @bear. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Yes, you can test more than one player in the Unity editor without needing to create a separate build every time. This is indeed a more efficient way to iterate and test multiplayer functionality in Normcore.
According to the Getting Started guide (https://normcore.io/documentation/essentials/getting-started#creating-a-normcore-application), you can test multiplayer functionality by running a standalone build alongside the Unity editor. However, this isn't the only method.
A more efficient approach for frequent iterations is to use multiple Realtime instances within the same Unity scene. Here's how you can do it:
1. Create multiple Realtime components in your scene, each representing a different player.
2. Give each Realtime component a unique room name or use the same room name if you want them to interact.
3. Set up your player prefabs and instantiation logic to work with these multiple Realtime instances.
This way, you can simulate multiple players connecting to the same or different rooms without needing to build and run separate instances of your application.
Remember that while this method is great for quick iterations and testing, it's still important to test with actual builds on target platforms before finalizing your project, as there might be platform-specific behaviors or performance considerations.
For more detailed information on working with multiple Realtime instances, you can refer to the Realtime documentation (https://normcore.io/documentation/realtime/realtime), which mentions that "If you would like to use multiple rooms in your multiplayer project, you can do so by creating additional Realtime instances."
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
<@623811261905502238> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
Thank you, I wish there was a more "formal" way to handle multiple clients 🙂
unity 6 has multiplayer mode editor
test up to 4 players right in the editor
if you are not on unity 6 then use parrelsync https://github.com/VeriorPies/ParrelSync
GitHub
GitHub - VeriorPies/ParrelSync: (Unity3D) Test multiplayer without ...
(Unity3D) Test multiplayer without building. Contribute to VeriorPies/ParrelSync development by creating an account on GitHub.
do you know where I can find the panel or menu item 😅
About Multiplayer Play Mode | Unity Multiplayer
Overview of Multiplayer Play Mode
thank you so much!