Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Add android project in Unity?

Discussion in 'Android' started by Dekata, Jan 17, 2018.

  1. Dekata

    Dekata

    Joined:
    May 20, 2016
    Posts:
    47
    Guys, I'm currently work with an Android Dev in project, and we decided to import android project as a part of game. So I wana know is this possible and how to pass value form unity function to android ?
     
  2. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    822
    Yes, compile your project as an android library and you will be able to use it from Unity. Here's some documentation on plugins https://docs.unity3d.com/Manual/PluginsForAndroid.html
    Depending on what you want to do, you'll use one or more of these things
    https://docs.unity3d.com/ScriptReference/AndroidJavaObject.html
    https://docs.unity3d.com/ScriptReference/AndroidJavaClass.html
    https://docs.unity3d.com/ScriptReference/AndroidJavaProxy.html
    https://docs.unity3d.com/ScriptReference/AndroidJavaRunnable.html
     
    Dekata likes this.