Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Kyle Sales · Aug 12, 2013 at 09:26 PM · sceneswindowsynchronizationbuilt

Window synchronization for multiplayer?

I have two questions about topics that I've never seen covered before in any tutorials, so I'm not sure if they are possible...

1) Is it possible to synchronize two windows of the same game for multiplayer, one window having Player 1 and the other having Player 2? if so, can it be done by linking scenes up so when scene 1 opens in window one, scene 2 opens in window two? I haven't a clue how to approach this.

2) Is it possible to create a scene that is able to be loaded up in both of the windows at the same time when selected and have one window playing as player one and one as player two, so it's like having one scene between two separate windows?

Both of these will take place when the game is built, so I don't think they can be tested in unity itself.

I would be very thankful for any answers.

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DaveA · Aug 12, 2013 at 09:40 PM 0
Share

Two questions mean you should post two separate questions!

avatar image DaveA · Aug 12, 2013 at 09:42 PM 0
Share

I think the answer to both of these is 'yes' but I'll let someone else fill in the details. Also, you should be able to test in the editor, by building the program and running it normally, then starting it in the editor and attaching to the already-running copy.

avatar image weenchehawk · Aug 12, 2013 at 11:16 PM 0
Share

Let's look at 1) first.

It all depends on what you mean by two windows. Do you mean, 2 instances of the same Game running on the same machine but in separate windows. Or do you mean within the same game have two different views (possibly of two different scenes).

As long as you're not trying to load two scenes at once it's possible. If you mean two different instances running in separate windows on the same host, you need to write a server (fairly easy). As each client connectes, have the server tell them what scene to load. Done. I think you'll need more help but this takes us to deeper level so we can uncover more questions.

For 2) Yes, also possible using a network server but possibly in an easier way. Generally if you want two separate instances of the same game in different windows talkin gto each other you'll need to use some form of networking (or roll your own IPC in windows which will be more work).

$$anonymous$$ore generally what are you trying to do ?

avatar image Kyle Sales · Aug 13, 2013 at 11:15 AM 0
Share

Yes I do mean 2 instances of the same Game running on the same machine but in separate windows.

Question 1 is aimed more at demos of the game that play when I leave it too long on the main menu. Because the game is multiplayer, I thought that ins$$anonymous$$d of two windows showing the same thing at once, they at as one screen so the window on the left shows one half of the perspective and the right window shows the other half. This is why I thought that the editor couldn't do it.

Question 2 you've pretty much answered so thanks very much, but is the server you mentioned in your first answer the same type as the network server?

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiplayer client and server aren't talking to each other properly after changing scenes 0 Answers

Change the game window built 1 Answer

Getting Scenes in Project From Editor 2 Answers

How do I change scenes when pressing a "play" button? 2 Answers

Question on Unity Project: Stealth - Chapter 1 - Video 2 at the beginning 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges