Search code examples
javaandroidunity-game-engine2d-gamesandroid-unity-plugin

Choosing between unity and native java for a game that involves complex Android functions


I want to develop a game for Android that involves using the camera, reading files on the device, reading contacts, etc.

Can I perform these operations if I use unity for development or will I have to go with native java? Or can I start off with unity and then import the project into Android studio and then add those features?

The game would be a story based game. So it's just 2D with a low poly art style.

(I have quite a bit of experience with app development but this is my first time trying to develop a game.)


Solution

  • This is quite a broad question because there are pros and cons against both. Unity is a powerful game engine and can be used for all kinds of games but if you want to do stuff like reading contacts, you'll have to write your own plugin to connect the native android.

    There are examples of such plugins here

    But you'll really have to do more investigation yourself.