1/9/2024 0 Comments Xcode sample projects![]() ![]() ![]() Pauses the ARSession, meaning device tracking and trackable detection (e.g., plane detection) is temporarily paused. In the case of ARCore, this means that raycasting will not be available until the plane is in TrackingState.Tracking again. If the plane is in TrackingState.Limited, it will highlight red. ![]() This uses the ARRaycastManager to perform a raycast against the plane. When a plane is detected, you can tap on the detected plane to place a cube on it. There are buttons on screen that let you pause, resume, reset, and reload the ARSession. This is a good starting sample that enables point cloud visualization and plane detection. Visualize trackables and configurations on deviceĭemonstrates ARCore's session recording feature Table of Contents Sample scene(s)ĭemonstrates basic Plane detection and Raycastingĭemonstrates checking for AR support on deviceĭemonstrates AR Foundation paired with the XR Interaction Toolkit packageĭemonstrates AR Foundation's Configuration Chooser Each scene is explained in more detail below. To learn more about the AR Foundation components used in each scene, see the AR Foundation Documentation. Open the Unity project at the root of this repository.Īs with any other Unity project, go to Build Settings, select your target platform, and build this project.Īll sample scenes in this project can be found in the Assets/Scenes folder. Install Unity 2021.2 or later and clone this repository. To build to device, follow the steps below: You can build the AR Foundation Samples project directly to device, which can be a helpful introduction to using AR Foundation features for the first time. How to use these samples Build and run on device To access sample scenes for previous versions of AR Foundation, refer to the table below for links to other branches. The main branch of this repository uses AR Foundation 5.1 and is compatible with Unity 2021.2 and later. This sample project depends on four Unity packages: Each feature is used in a minimal sample scene with example code that you can modify or copy into your project. Example AR scenes that use AR Foundation 5.1 and demonstrate its features. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |