• 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
Question by AndreasX12 · Oct 19, 2013 at 08:35 AM · networkingmultiplayerserverhostbuiltin

Unity networking tutorial?

Hi, I'm trying to make a mobile multiplayer game in Unity Basic with Unity's built-in networking. Are there any sample projects to download or any good tutorials? The problem is, that I would like the users to both host the server and play on the server on the same device. And I haven't found any tutorials about that. And also the cheaper the better :-)

Comment
petrbena
ilm126
spinnerbox
soemyatmin
shomeser
Sanyika66
joaoborks
Suraksha226

People who like this

8 Show 0
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

6 Replies

  • Sort: 
avatar image
Best Answer

Answer by Griffo · Oct 19, 2013 at 11:48 AM

Here

Here

and

Here

Here

Here

and

Here

and

Here

And everywhere else .. ;) Good luck.

Comment
$$anonymous$$
Andres-Fernandez
tim_wargon
BlackPanda
slims
MakakWasTaken
yashpal
Dzianis
bjarkeck
Piflik
shomeser
tocu-adrian

People who like this

10 Show 4 · 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 Poelie · Jan 05, 2014 at 09:43 PM 1
Share

I really loves the last link of Paladin Studios :)

avatar image Draze · Jan 19, 2015 at 01:50 AM 1
Share

4th link is broken (404).

avatar image eelstork · Mar 29, 2015 at 12:39 PM 3
Share

There are so many better ways to reference people's work...

avatar image JstuckiJstucki · Feb 10, 2021 at 09:48 PM 0
Share

lol. Thx.:)

avatar image

Answer by 03gramat · Jan 15, 2015 at 02:03 PM

Here's it explained in 15mins C# and JS code available too!

https://www.youtube.com/watch?v=QfzrpxO89tU

Comment
TheFloatingSheep

People who like this

1 Show 0 · 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

Answer by Poelie · Jan 05, 2014 at 09:49 PM

Also here : http://www.youtube.com/user/quill18creates?feature=watch

Comment
soemyatmin
Salazar

People who like this

0 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 AlucardJay · Jan 05, 2014 at 11:31 PM 0
Share

Quill18 uses the Photon Unity Network, not the Unity built-in Networking (though both are very similar)

avatar image

Answer by BOSNA · Jun 21, 2015 at 06:02 PM

any help how to make timer works and shows on server:

public Text myText;

 public float mytime;
 float myTimer;

     [ClientRpc]
     public void RpcDoOnClient(float foo)
     {
         
     mytime = foo;
     myText.text = "" + mytime.ToString ();

     
     }
     
 


     [ServerCallback]
     void Update()
     {

     myTimer+=Time.deltaTime;


         



             // this will be invoked on all clients
     RpcDoOnClient(myTimer);
         
     }
Comment

People who like this

0 Show 0 · 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

Answer by joaoborks · Feb 17, 2017 at 08:28 AM

This is the best reference I found for an updated solution. This guy practicaly defines an unofficial very detailed workflow on how to work with multiplayer games. If you need anything else there is this list of samples people pulled up some time ago.

Good Luck!

Comment

People who like this

0 Show 0 · 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
  • 1
  • 2
  • ›

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta on June 13. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

26 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiplayer Server Networking- Player Server Hosting 2 Answers

How can I transfer hosts once the current host leaves? 0 Answers

Player hosting the game with Unity Networking 1 Answer

MasterServer.RegisterHost Issue 0 Answers

Multiplayer: Only see Players moving on Host 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