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 Fraggle222 · Jun 10, 2012 at 01:21 PM · iosmultiplayerprime31

Multiplayer (iOS): Unity Networking or Prime31 or Both?

Looking for some best practice advice here.

I want to add multiplayer (2-4 players) to my game. I want to use Game Center to find/match up players, etc.

What I don't quite get is this. If I use something like Prime31's Multiplayer extension to connect players via Game Center, then do I basically lose all the Unity Networking functionality?

In other words, what is the best way to do Multiplayer with Game Center? Do you use Unity Networking clases (following Unity Multiplayer Tutorial), or do you just use something like Prime31's "sendMessageToPeers" functions to send info about transforms, game objects etc that need to be displayed in the other players scene and write custom code to parse that and display it?

Comment
Add comment · Show 6
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 Fattie · Jun 10, 2012 at 04:13 PM 0
Share

really I think just use Unity's networking commands. Use Prime specifically for the GameCenter. Frankly, don't even THIN$$anonymous$$ about the game center until you get your basic $$anonymous$$P gameplay working.

avatar image Fraggle222 · Jun 10, 2012 at 11:08 PM 0
Share

@Fattie, but if you ignore game center then you ignore the networking capabilities of it, and then when you add Game Center you'll have double networking going on, right? Or is the Game Center stuff "only" for finding matches and not for actually synchronizing game state???

avatar image Fattie · Jun 11, 2012 at 04:41 AM 0
Share

edited for clarity ...

Your SECOND sentence after "or" is exactly correct Fraggie: the Game Center stuff is "only" for FINDING matches.

Also, its just a leaderboard as well. (Plus it does authentication and the like)

avatar image Adamcbrz · Jun 11, 2012 at 01:01 PM 1
Share

GameCenter does more than just leader boards. If you are using GameCenter for multiplayer than you will have to do that early on. I don't think GameCenter utilizes any functionality of the Unity Networking. GameCenter will take care of all the communication back and forth though their functions. But since GameCenter doesn't work in editor it might be good while developing to have another solution to test your multiplayer functionality.

avatar image Fattie · Jun 11, 2012 at 01:19 PM 0
Share

http://developer.apple.com/library/ios/#DOCU$$anonymous$$ENTATION/NetworkingInternet/Conceptual/Game$$anonymous$$it_Guide/GameCenterOverview/GameCenterOverview.html

game center provdes leaderboards. it also providees $$anonymous$$ATCH$$anonymous$$A$$anonymous$$ING for $$anonymous$$P networking. again, that's $$anonymous$$ATCH$$anonymous$$A$$anonymous$$ING for $$anonymous$$P networking.

but (of course - obviously) the networking does not actually run through gamecenter!!!!!!!!!!!!!

just as fraggie said, it is "only" for finding matches it is not (of course, obviously), for actual $$anonymous$$P networking.

  • GameCenter will take care of all the communication back and forth though their functions* that statement is incorrect, gamecenter is "only" for finding matches* as fraggie says (it is also a leaderboard!).

sorry if my previous comment was unclear .. I will edit it

Basically if you're doing an $$anonymous$$P game: do all the incredibly difficult work of making the $$anonymous$$P game work, locally in your studio with four of you playing the game on four iPads. That't the hard part and it will take 7 years.

THEN -- once that works -- as a FURTHER problem, you have to deal with "remote play" where you can 'find people to play against" on the internet. That is a whole hassle in itself, and indeed, GameCenter will help you there.

Sorry again if I was unclear

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by TokyoDan · Feb 13, 2013 at 11:57 PM

But what about the Game Center turn-based API? That handles networking and has nothing to do with leader boards

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 Zinger · Feb 14, 2013 at 04:20 PM 0
Share

Yeah, Game Center API clearly supports data exchange between players that is unrelated to match making or leaderboards. There is a voice chat as well as methods like the ones below. I just wonder if anyone uses those for a Unity type game.

  • (BOOL)sendData:(NSData )data toPlayers:(NSArray ))playerIDs withData$$anonymous$$ode:(G$$anonymous$$$$anonymous$$atchSendData$$anonymous$$ode)mode error:(NSError *)error

and

  • (void)match:(G$$anonymous$$$$anonymous$$atch )match didReceiveData:(NSData )data fromPlayer:(NSString *)playerID

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

8 People are following this question.

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

Related Questions

Photon : Multiplayer between iOS & Android ? 0 Answers

Multiple Touch Drag iOS 0 Answers

iOS Basic - Multiplayer Options Available? 1 Answer

Getting errors when trying to compile with prime[31] plug-ins 2 Answers

I cannot log into Facebook when logged in via the settings screen of iOS 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