A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/ar/develop/unity-arf/getting-started-ar-foundation below:

Getting started with AR Foundation | ARCore

Getting started with AR Foundation

Stay organized with collections Save and categorize content based on your preferences.

Unity's AR Foundation is a cross-platform framework that allows you to write augmented reality experiences once, then build for either Android or iOS devices without making any additional changes. The framework is available via Unity's AR Foundation package.

ARCore's optional ARCore Extensions for AR Foundation package adds additional functionality, enabling you to use features such as Cloud Anchors, Camera configuration filters, and Recording and Playback to your app.

Migrate or upgrade existing projects Requirements

Depending on your target platform, the AR Foundation package requires the following:

Install AR Foundation

Follow these steps to install the AR Foundation Unity package.

  1. Open an existing Unity project, or create a new 3D project.
  2. Navigate to Window > Package Manager.
  3. Next to Packages, select Unity Registry.

  4. In the search bar, type "AR Foundation".

  5. Click Install.

  6. Configure the Render Pipeline

Install and enable platform-specific plugin packages

The AR Foundation package presents an interface for Unity developers to use, but doesn't implement any AR features itself. To use AR Foundation on a target device, you'll also need to install separate packages and enable the corresponding plugin for each respective platform.

Android

The ARCore XR Plugin package lets you build augmented reality apps for Android devices. Follow these steps to install it in your Unity project if your application targets Android devices. Use the same version as the AR Foundation package to avoid any compatibility issues.

  1. In your project, navigate to Window > Package Manager.

  2. Next to Packages, select Unity Registry.

  3. In the search bar, type "ARCore XR plugin".

  4. Click Install.

  5. Navigate to Edit > Project Settings. In XR Plug-in Management, open the Android tab and enable ARCore.

iOS

The ARKit XR Plugin allows you to build augmented reality apps for iOS devices. Follow these steps to install it in your Unity project if your application targets iOS devices. Use the same version as the AR Foundation package to avoid any compatibility issues.

  1. In your project, navigate to Window > Package Manager.

  2. Next to Packages, select Unity Registry.

  3. In the search bar, type "ARKit XR plugin".

  4. Click Install.

  5. Navigate to Edit > Project Settings. In XR Plug-in Management, open the iOS tab and enable ARKit.

Configure an AR Session and add AR Foundation components to your scene

A scene needs an AR session to enable AR processes, such as motion tracking, environmental understanding, and lighting estimation. You will need the following game objects to support an AR session:

AR Foundation 4.x

Before adding the new game objects, delete the default Main Camera. It will be replaced by a new AR Camera in the AR Session Origin.

Add the new AR game objects to your scene: right-click the Hierarchy pane and select XR. Add a new AR Session and a new AR Session Origin game object.

AR Foundation 5.x

Before adding the new game objects, delete the default Main Camera. It will be replaced by a new AR Camera in the XR Origin.

Add the new AR game objects to your scene: right-click the Hierarchy pane and select XR. Add a new AR Session and a new XR Origin game object.

AR Foundation 6.x

Before adding the new game objects, delete the default Main Camera. It will be replaced by a new AR Camera in the XR Origin.

Add the new AR game objects to your scene: right-click the Hierarchy pane and select XR. Add a new AR Session and a new XR Origin game object.

Configure Player Settings Android
  1. Navigate to File > Build Settings to open the Build Settings window.
  2. Under Platform, choose Android and click Switch Platform.
  3. Click Player Settings.
  4. Apply the following changes:

    Player Settings > … Value Other Settings > Rendering Uncheck Auto Graphics API.
    If Vulkan is listed under Graphics APIs, remove it as Vulkan is not yet supported by ARCore. Other Settings > Package Name Create a unique app ID using a Java package name format.
    For example, use com.example.helloAR. Other Settings > Minimum API Level If you are building an AR Required app, specify Android 7.0 'Nougat' (API Level 24) or higher.
    If you are building an AR Optional app, specify Android API Level 19 or higher. Other Settings > Scripting Backend Select IL2CPP instead of Mono to allow ARM64 support to be enabled in the next step.

    During development:

    When shipping to the Play Store:

    Other Settings > Target Architectures To meet the Google Play 64-bit requirement, enable ARM64 (64-bit ARM). Leave ARMv7 (32-bit ARM) enabled to support 32-bit devices.
iOS
  1. Navigate to File > Build Settings to open the Build Settings window.
  2. Under Platform, choose iOS and click Switch Platform.
  3. Click Player Settings.
  4. Configure the following settings:

    Player Settings > … Value Other Settings > Bundle Identifier Add your app's name in a reverse DNS format.
    For example, use com.mycompany.myapp. Other Settings > Camera usage description Enter a description to explain your use of AR (for example, ARKit). Other Settings > Target minimum iOS version 11.0 or higher Other Settings > Architecture ARM64
What's next

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-02-28 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-28 UTC."],[[["Unity's AR Foundation offers a cross-platform framework for building AR experiences compatible with both Android and iOS devices."],["ARCore Extensions provide additional features like Cloud Anchors and Recording and Playback for enhanced AR functionalities."],["Setting up AR Foundation requires installing specific Unity packages, platform-specific plugins (ARCore XR Plugin for Android, ARKit XR Plugin for iOS), and configuring an AR Session with essential game objects."],["Successful project configuration involves meeting hardware and software requirements, adjusting Player Settings for the target platform (Android or iOS), and potentially migrating existing projects."]]],["Unity's AR Foundation enables cross-platform AR development for Android and iOS. To use it, install the AR Foundation package via Unity's Package Manager, and then install the corresponding ARCore XR Plugin for Android or ARKit XR Plugin for iOS. Configure the render pipeline and establish an AR session with AR Session and AR/XR Origin objects in your scene. Finally, adjust platform-specific settings, such as API levels and target architectures for Android and Bundle Identifier and Architecture for IOS, in the Build settings.\n"]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3