# AR_Foundation - Learning ressource
To check the version compatibility :
https://github.com/Unity-Technologies/arfoundation-samples
Available features per platformes :
https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.1/manual/index.html
Setup & Get started tutorial :
https://learn.unity.com/tutorial/setting-up-ar-foundation#
# Step 1 : Create a new project
- open the unity hub
- Make sure you have unity 2020.3.x LTS installed 
- Also make sure you have the android build module. Else, add it : 
- Click on project new button to create a new project in 2020.3.x version 
- wait the templates loading 
- Download th AR template 
- Name your project, choose this location and click on Create button
- Wait while unity start
- Follow this instructions 
- Check ARcore 
- Open the build settings File>BuildSettins and switch build platform to Android 
- Now your environment is ready
# Step 2 : Plane detection and object spawn
- Open the "SampleScene" in ExamplesAssets>Scenes 
- We will add the 3D object to spawn in the approriate script (AnchorCreator). This script will spawn an object when we touch phone screen.
So, Add the CubeObject prefab in Anchor Prefab propertie 
- And build and run on your phone.
# Step 3 : Image detection
- Download this image, it will be our AR marker

- import them in Unity (drag'n'drop in your asset folder)
- Create a Reference image library (Right click in project tab)

- Add the image in the reference image library :

- On the game object "AR Session Origin" add the component "ARtrackedImageManager"

- Put in, "Serialized library" your "Reference Image Library"
- Create a prefab, like a simple sphere and put it in "Tracked Image Prefab". This object will be appear on the AR marker.

- Make sure, your prefab location is 0,0,0

- Build and run your app on your phone and test.
#### A Unity Project with this examples : https://github.com/MartinCailleau/Unity_AR_Foundation_Start