Search Unity

Showcase Setting Up Mars for Android

Discussion in 'Unity MARS' started by Kulishnekar, Jun 24, 2020.

  1. Kulishnekar

    Kulishnekar

    Joined:
    Oct 17, 2017
    Posts:
    12
    I found the Unity documentation outdated or insufficient so I wanted to share this with the community.

    SETTING UP MARS for Android
    STEP ONE
    1. Open Mars Installer program (Note: It's not yet in the Package Manager. I downloaded it and saved it to my Desktop)
    2. From Package Manager (in Window drop down) do the following:
    a) Import MARS ( if you don't see it, choose 1. Advanced, and 2. Show preview packages)
    b) Install AR XR Core Plug in
    3. From Hierachy tab, do the following:
    a) Right click your mouse in the Hiearchy tab
    b) Choose MARS/Mars Session from the drop down menu. Your Mars Session should now appear in your Hiearchy.

    STEP TWO
    OPEN UP BUILD SETTINGS
    (Ope from file)
    1. Under Platform, select Android
    2. Run Device (left hand column): Connect your Android phone via USB to your computer. Press refresh and from the drop down
    menu, select your phone. ( To set up your Android phone see note below w You Tube Link)
    3. Add your scene:
    a) Drag and drop your Scene from the Hiearchy menu to "Scenes in Build")

    STEP THREE
    OPEN UP PROJECT SETTINGS
    (Project settings is under Edit, next to File)
    1. SELECT XR/AR Core. In right hand column, press button Create. Change "Required" to "Optional".
    2. SELECT Project/Player from left hand column.
    In left hand column,
    a) Under Product Name, give your game a name (i.e." Fun Game")
    b) Under Other Settings
    1) Under Rendering/Graphis APIs, delete Vulkan
    2) Uncheck the box Multithreaded Rendering
    3) Package Name : Delete "DeleteCompany" and insert your own company. You can make it up (i.e. com.Fantastico.mygreatproject)
    4) Minimum API Level: I changed mine to 8.0. I have a Samsung 9.
    3. You're Done.

    FINAL STEP
    You're ready to build/transfer your game/program to your Android phone.
    1. From the File menu, choose Build and Run.
    a) Save your game/APK file. Best to create a folder titled APK and save it there.
    Changing your Cell Phone Settings
    You need to change the cell phone settings to those for a developer. Here's a you tube link with more info about all the above
     
    fredyang17 and jmunozarUTech like this.
  2. leweyg_unity

    leweyg_unity

    Unity Technologies

    Joined:
    Jan 29, 2020
    Posts:
    38
    Thanks for the effort! We also provide a built in "Window > MARS > Build Settings Check" that may be useful.
     
    jmunozarUTech likes this.