echo3D
🌐 Back to website💻 Go to console📺 Watch workshop💬 Discuss on Slack
  • Introduction
  • Quickstart
    • 🔑Register
    • 💻Access the Console
    • 🎲Add a 3D Asset
    • 📤Share it with Others
    • ❔Troubleshooting
  • Web Console
    • 📦Load a Collection
    • 💼Manage Pages
      • Content Page
        • Assets and Targets
        • Add Content
        • Edit Content
        • Share Content
        • Access Permissions
        • Version Control
        • Asset Hierarchy
        • Bulk Actions on Assets
        • Asset Commenting
        • Activity Sidebar
      • Metadata & Tags Page
        • Collection Taxonomy and Asset Specific Metadata
        • How to Add and Edit Metadata
        • How to Add Associated Files and Text
      • Collections and Sharing Page
        • Users Tab
        • Groups Tab
        • Collections
        • Collection Sharing Tab
        • Asset Sharing Tab
        • Security Tab
      • Customizer Page
      • Model Editor Page
      • Scene Editor Page
    • 🚚Deliver Pages
      • Locations Page
      • Users Page
      • Insights Page
    • 🕛Optimize Pages
      • Convert & Compress Page
    • 🎓Learn Pages
      • Tutorials Page
    • 👤Account Page
      • Profile Tab
      • Email & Password
      • Plans Tab
      • Credit Usage Tab
      • Notifications Tab
      • Delete Account Tab
    • ❓Help Menu
    • ⏬Downloads
    • 🎨Themes
    • 🔎Search
  • API
    • 🧩Objects
    • 🗨️Queries
    • 📊Data
      • 📑What Metadata is Stored
    • 🔼Upload
    • 🔽Download
    • ❌Delete
    • 🌳Entry Hierarchy
    • 🔄Convert
    • 🔃Compress
    • 📁Organize
    • ⏪Version
    • ⏬Locate
    • 🔎Search
    • 🖼️Search by Image or Model
    • Share Content
  • Unity
    • 🔨Installation
    • 🧰Using the SDK
    • 🔧Script Settings
    • 📐Transforming Content
    • 👩‍💻Edit Code
    • 🤳Adding AR Capabilities
    • ❔Troubleshooting
  • Unreal 4
    • 🔨Installation
    • 🧰Using the SDK
    • 🔧Demo Project
  • Web
    • 🔨Installation
    • 🧰Using the Package
  • Scene Viewer
    • 📲Deploy Experience
    • 📐Transforming Content
    • 🔢Embed into Website or App
    • 👩‍💻Add Code
    • ❔Troubleshooting
  • AR.js
    • 📲Deploy Experience
    • 📐Transforming Content
    • 🔢Embed into Website or App
    • ❔Troubleshooting
  • FaceAR
    • 📲Deploy Experience
    • 📐Transforming Content
    • 🔢Embed into Website or App
    • ❔Troubleshooting
  • React Native
    • 📩Fetching Data
    • 👩‍💻Edit Code
    • 🤳Adding AR/VR Capabilities
    • 📐Transforming Content
  • Swift
    • 🔨Installation
    • 🔢Displaying a Model Asset
    • 🤳Adding AR Capabilities
    • 🧰Using the SDK
  • Flutter
    • 🔨Installation
    • 👩‍💻Edit Code
    • 🤳Adding AR Capabilities
  • JavaScript
    • 🔨Installation
    • 🧰Using the SDK
    • 📩Fetching Data
    • 👩‍💻Edit Code
  • Python
    • 🔨Installation
    • 🧰Using the SDK
    • 🔧Demo Project
  • NVIDIA Omniverse
    • 🔨Installation
  • Adobe Substance 3D Painter
    • 🔨Installation
  • 🧰Using the Plugin
  • Blender
    • 🔨Installation
    • 🧰Using the Add-on
  • eCommerce Sites
    • 🛒Shopify
    • 🌐Wix
  • 3D Content
    • 🎨Content Creation
    • 💎Google Poly
    • 📦Objaverse
    • 💫3D Capture Apps
      • MagiScan
      • Qlone
      • ARitize360
      • SCANN3D
      • 3D Scanner
      • Didimo Xperience
      • Scaniverse
      • Metascan3D
      • Polycam3D
      • RealityScan
Powered by GitBook
On this page
  • 1. Installing AR Foundation
  • 2. Setup a Simple AR Application
  • 3. Set your API Key
  • 4. Build and Run the 3D/AR/VR or Spatial Computing Application
  • 5. Use your AR Application

Was this helpful?

  1. Unity

Adding AR Capabilities

Learn how to add AR capabilities to your cloud-connected Unity project.

PreviousEdit CodeNextTroubleshooting

Last updated 1 year ago

Was this helpful?

Now that you are successfully able to stream 3D content into Unity and know how to make custom adjustments, it's time to add AR capabilities to your project.

Unity provides a framework purpose-built for AR development called . It allows you to build across multiple mobile and wearable AR devices, such as Android with ARCore and iOS with ARKit.

Before using AR Foundation, make sure that your iOS device is compatible with or that your Android device has or installed.

1. Installing AR Foundation

Clone the open-source example project on GitHub and open it in Unity.

2. Setup a Simple AR Application

Open the AR Foundation sample scene located in:

Assets > AR Foundation > Scenes > SimpleAR > SimpleAR

In the hierarchy click on the AR Session Origin game object.

In the inspector view, look for the Place on Plane script and set the Placed Prefab to the echo3D prefab in the Assets > echo3D folder.

3. Set your API Key

Edit the echo3D prefab and set your API key through in the Inspector view.

Do you want to test the app in Unity before building it?

You can test the connection to echo3D by pressing Play to start the app on Unity.

Note that the Game view will show a black screen - that is expected as the Game view tries to access the mobile AR camera which doesn't exists when running on a desktop machine.

Switch to the Scene view and drag the echo3D prefab fromAssets > echo3D into the hierarchy.

If the API key was set correctly you should be able to see 3D assets from the echo3D console stream into Unity.

Stopping Unity from playing should reset everything.

You are now ready to build the AR app on a mobile device.

4. Build and Run the 3D/AR/VR or Spatial Computing Application

Go to File > Build Settings... or press Ctrl+Shift+B.

Make sure to set your platform to (either Android, iOS, or Universal Windows Platform (UWP), etc.) by choosing the target platform and pressing theSwitch Platform button on the bottom right corner.

Verify that the SimpleAR scene is ticked in the Scenes in Build list and click Build And Run.

5. Use your AR Application

When the application is loaded on your mobile device you might be asked to approve camera access permission.

Move the phone around until a surface is detected.

Tap the screen to place the model on the surface.

The model will steam and render in front of you.

You did it! 🎉

Connect your /-compatible mobile device or AR/VR/Spatial Computing headset to your desktop machine using a USB cable.

First, to the console.

If the model is too big or too small, go back to the console and to affect its scale. After adding metadata the model should change automatically.

🤳
ARKit
ARCore
add a 3D model
AR Foundation
ARKit
ARCore
Google Play Services for AR
Unity + AR Foundation + echo3D
add metadata