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 kidsmurf2001 · Feb 06, 2013 at 08:52 PM · networkingworkflow

Efficient Network Development Workflow

How do people configure their workflow for rapid development of Networking code?

Pre-Unity, we would have two versions of Visual Studio open - referencing the same code/project - and boot up two or more game instances (they could even run on the same PC if the code were written correctly).

However, we cannot do this in Unity since only version of the Editor can be open at a time.

A few imperfect solutions come to mind:

  1. Run Unity on two PCs, sync code back and forth using source control.

  2. Run Unity on two PCs, sharing a mapped drive. However, I'm not sure this would work due to both instances sharing a Library directory.

However, I believe both the above would require to Unity Pro licenses, making it impractical cost-wise.

It seems like the only supported option is to Build an exported version of the game and copy to a 2nd PC. This seems very slow to me.

Does anyone have a better workflow? I would like seconds between modifying code and baing into the game again, ideally on a single PC.

Any ideas?

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by DynamicPrgm · Feb 06, 2013 at 09:28 PM

Go to player settings, check play in background, and build the project and run in the background. You can then start testing by connecting to whatever your running on the editor with the built project.

Comment
Add comment · Show 1 · Share
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 kidsmurf2001 · Feb 07, 2013 at 04:52 PM 0
Share

Thanks, that works well!

avatar image
0

Answer by Bunny83 · Feb 07, 2013 at 05:19 PM

You can start multiple instances of the UnityEditor, just pass the -projectPath parameter when you start the editor. What you can't do is open the same project multiple times since the editor will create lock files to prevent corruption of scenes / library folder. You can however copy the entire project to another folder and open this one. This could be done with a batch file which creates a duplicate of the folder and starts the unity editor two times with the two projects. You would have only one master project.

I prefer to create a build and use it as client. You can even change things in the editor and still use an "old" client as long as you don't implemented or changed anything that would break syncing.

I remember when we had our game on kongregate with only one level, no level selection. We did some testing in the editor with a new second level and someone just joined into our game. Everything works, but he was in a totally different level :) it was crazy. Since then i always include a "development server" flag which blocks any build clients from joining.

Comment
Add comment · Share
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

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

11 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

Related Questions

Unity networking tutorial? 6 Answers

Client can't spawn GameObject's 0 Answers

Network traffic and bandwidth usage standards 0 Answers

Best cross platform Http Library? 1 Answer

Locomotion animation syncing across network. 0 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