Lankinen
Posted on June 7, 2020
AR Foundation makes it possible to use Unity to create ARCore and ARKit apps.
AR Foundation & Unity 01: Setup for Android
- Change platform from
build settings
to android. - Go to
PLayer Settings
- Uncheck multithread rendering + remove Vulkan from Graphics APIs + Minimum API level to 26
- Install Packages:
AR Foundation
,ARKit XR Plugin
, andARCore XR Plugin
- AR Session Origin game object
- Remove the main camera
- AR Session game object
- Create some object to the scene that is rendered in AR
-
Build Settings
and choose your phone connected with USB fromRun Device
- Build and Run
AR Foundation & Unity 02: Setup for iOS
Change to iOS
Check
Requires ARKit support
+ Architecture from Universal to ARM64 + Target minimum iOS version to 11.0.Don't do this on iOS
Build and create a folder where the app will be built for Xcode
Open the new files on Xcode by opening
Unity-iPhone.xcodeproj
fileSelect team
Play to run the program
AR Foundation & Unity 03: Image Tracking
Learn how to place game object to a marker.
Unity AR Foundation Tutorial - Plane Detection
Detecting a plane.
Unity AR Foundation Tutorial - Tap to Place Objects in AR
Adding game object to the detected plane.
AR Session Origin
contains a camera that can be tagged as MainCamera
and then the default camera can be deleted. AR Session
need to be created too.
This is the point where you probably want to start doing something because all the videos below talk about these same things Dinesh explained well above.
Getting Started With ARFoundation in Unity (ARKit, ARCore)
- It's okay to use empty game object for just code placeholder
- There is auto signin option in Unity that should remove the need to do it in Xcode
- Run and build should work automatically after the first setup with iOS
- Unity physics work better with bigger objects and smaller objects might have some weird behaviour.
ARFoundation Unity Tutorial | Third Aurora Augmented Reality Tech Company
Most of the projects contains three things to start with:
- Place objects to the ground
- Click events
- Toggle on and off AR planes and point clouds
The packages and Unity is constantly changing and different versions might affect how the things work.
In the video he creates a simple app where is UI button and then it uses point clouds (the things listed above). This is great video to watch to see how UI elements work with AR content.
COMPLETE COURSE - Learn Unity's AR Foundation
This video didn't explain anything new but talked about the same things as previous videos.
Posted on June 7, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.