- Setup Unity on your system
- enable android build support
- create a 3D project
- go to File > Build Settings > select Android
- go to Window > Package Manager > Advanced > Show Preview packages
- in that menu install these packages
- AR Foundation 4.1.1
- ARCore XR plugin 4.1.1
- XR Plugin management 3.2.16
- go to hierarchy bar in unity, right click there select XR > AR Session Origin
- expand AR Session Origin > AR Camera
- go to Inspector tab change Tag to Main Camera
- go to hierarchy bar, right click there & select XR > AR Session
- go to hierarchy, remove main Camera under SampleScene
- go to hierarchy bar, right click there & select 3D Object > Cube
- click on Cube, go to inspector tab
- in Transform > Change Position to X: 0, Y: 0, Z: 1
- in Transform > Change Scale to X: 0.2, Y: 0.2, Z: 0.2
- change the rotation a little bit of the cube
- enable usb debugging in android phone & use android phone which supports ARCore
- Then in unity go to File > Build Settings > Android > Run Device > Refresh > Select your Physical Device
- Then in unity go to File > Build Settings > Player Settings > XR Plug-in Management > Enable ARCore
- Then Click on Add Open Scenes, then click on Build and run and check your android phone to preview the app
- if any error occurs while building the app, check this video to resolve it https://youtu.be/c6Zbqm5Fys8
Thank you, Keep Developing Apps & Enjoy :)