- Home /
Adding features, eg online multiplayer android/ios
Hi, So this is my first post and I'm generally a bit of a noob not least about Unity which I'm yet to use at all. But..
I have a game out for Android which I wrote in Andengine using eclipse. I want to use Unity for the sequel, but I'm being a bit put off by the fact that Unity seems a bit of a closed/black box package that will be very good at doing what it does, but, because you seem to get an apk at the end, you can't do anything else with it. I could easily be wrong. I am a noob after all.
For example. I've just added an online multiplayer feature to my game. There doesn't seem to be an obvious way to do this, in unity. Would I be able to take the java code from my existing game and run it along side whatever unity gives me.
Also I have sdks and .jars from various advertising networks and other partners. Can I somehow use these alongside Unity, or does it have to be specifically supported by Untiy?
$$anonymous$$ultiplayer is copletely built-in to Unity3D, and is one of it's most famous features.
one might as well ask "oh does Unity include 'rendering'" .. heh.
$$anonymous$$ost multiplayer games are now Unity, it do$$anonymous$$ates the industry.
All multiplayer program$$anonymous$$g is very difficult but Unity's is about as easy as it gets (hence the extreme popularity)
Regarding $$anonymous$$P servers, if that's what you're asking, Xearo has pointed to smartfox (which you would know about anyway) and obviously apple has gamecenter.
Answer by XaeroDegreaz · Mar 08, 2013 at 04:21 AM
There is some really good information here about the default, built-in networking in Unity:
http://docs.unity3d.com/Documentation/Components/class-NetworkView.html.
There is also a reference guide here:
http://docs.unity3d.com/Documentation/Components/NetworkReferenceGuide.html
You can also use something like SmartFoxServer: http://www.smartfoxserver.com/download/sfs2x (I highly recommend this, since you are a Java developer) if you want a lot more ability to refine the server-side workings, whereas in Unity, you're pretty much stuck with all of the default stuff in the "MasterServer", since their communication protocol between Unity, and RakNet is not publicly exposed.
So there's that for the networking side, but I still didn't get what you meant by "non-standard Unity features", however, I can tell you this much: Choosing Unity for your sequel will be a great treat -- the workflow in Unity is so much better / faster than working with Android.
Thanks for the reply.
By non standard features I think I really mean 3rd party stuff that has an sdk for android, but not necessarily a unity plugin. $$anonymous$$any advertising networks for example. Does admob have a Unity plugin? If it didn't could I somehow use it anyway?
This is a really good question -- I don't know!
A quick Google search turned up: http://www.e-nature.ch/tech/unity3d-show-a-admob-banner-in-an-existing-unity-android-game-scene/
which is an in-depth tutorial for this specific task. Your mileage may vary, and I've never used Admob in Android, so I'm sorry I can't be of more assistance than this link.
Your answer
Follow this Question
Related Questions
Mobile Ads Frameworks that support unity 0 Answers
Android Communication 1 Answer
Unity3d banner ads 1 Answer
MySQL and Unity android build 2 Answers