Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you put a Unity 3d game in a Xamarin cross platform app

Can you put a Unity 3d game in a Xamarin cross platform app?

I am developing a Game using Unity 3D, and I would like to include the game in my Xamarin Cross Platform App.

The Game is a mini game that I will give away free to customers who download and use my App.

Is this possible?

like image 341
MattyMerrix Avatar asked Oct 09 '15 15:10

MattyMerrix


1 Answers

Can you put a Unity 3d game in a Xamarin cross platform app?

It depends.

Assuming you are not talking about browser games, Unity creates its own executable and/or entry point. You would probably have to take the Unity3D-created game and embed that as a resource in the original app, say a Windows Phone app. Then launch the game as a child process.

The original app:

The original app

You may be able to embed a Unity3D-created Windows phone app as a resource in an existing Windows Phone application. You could just spawn it as a child process?

The embedded Unity3D game

Web Game

However, there is nothing stopping you from making a game in Unity3D and having it generate a web game.

Access complimentary build options for Web publishing in Unity 5. Once a user installs it, the hugely popular Unity Web Player plugin updates automatically. Use it to deploy to Internet Explorer, Safari, Mozilla Firefox and more. Tell me more

Your Xamaring app can then simply display a web browser from which you can play your game.

enter image description here

Browser Shell Apps

I see your "Merricks Jewelry" app is already on the iOS store. Be warned that should you pursue the web game approach, I know at one point Apple were strict at one point about native apps that were essentially shells for web-based content. You may need to check with Apple. It may still be the case or it may not.

like image 104
MickyD Avatar answered Nov 02 '22 20:11

MickyD