![]() ![]() Open Window -> Package Manager in Unity and search for ARCore XR Plugin. Many of the newer smartphones are capable of running AR apps. You will need an ARCore supported device for building Augmented Reality applications for Android. Google ARCore is a platform that has tools for creating Augmented Reality applications. After that the Unity app should open on your phone when the build is done. Then click Build and Run and choose where to save the build on your computer. Your phone might ask for permission to build over USB and you need to allow it for this to work. Make sure your phone is on USB for file transfer mode. Add a Company Name (just some unique name that you can use, I put whatminjacodes) and and Product name (I put intro-to-ar-part-1).Īfter that you can connect your phone to your computer using a cable. It will take some time but this will change the build so it can be installed on Android.Īfter the platform has been switched, click Player Settings on the same Build Settings window that we were on before. Then change the platform to Android and click Switch platform. Go to File -> Build Settings on Unity and click Add Open Scenes to add the current scene to the build. ![]() Then go to the Developer options and enable USB debugging. I have Samsung Galaxy Flip 3 and the developer options are enabled by going to Settings -> About phone -> Software information and repeatedly tapping on Build number. It's done a bit differently on each Android phone so you need to search how to do it with your phone. You have to enable developer options on your phone before you are able to build to it. Click Create and wait for the project to open (this might take some time too). You can also download Visual Studio Code, which is an open source code editor, if you prefer that.Īfter waiting for Unity to install (it might take a long time) we are finally able to create our first project.Ĭhoose 3D, give the project a name and choose a location to save. You also need Android SDK & NDK Tools and OpenJDK to be able to build for Android. It's free to use for personal and Open Source projects. I recommend also downloading Visual Studio Community. I chose the version Unity 2020.3.24f1 (LTS), which was the recommended release during the time I was writing this blog post. Go to Installs on Unity Hub and click Add. After that you can sign in to Unity Hub and activate a new licence.Īfter activating the licence you can add Unity installations. If you don't have an UnityID, create it on Unity website. You will need a payed version of the software if you work in an enterprice that gets over $100000 in revenue. Unity Hub is a management tool that allows multiple Unity version installations and it has good tutorials to get started with the development.Īfter running the installer and opening Unity Hub it will ask you to activate a licence. You can either download a specific version of Unity or Unity Hub. This step-by-step guide is meant as a starting point when building Augmented Reality applications with Unity! You can also download this project from my Github and use it as a base when building AR apps.ĭownload Unity from their website. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |