AR Modules
Last updated
Last updated
This page describes how to use the AR modules of the Realvirtual.io XR & Multiuser extension in your realvirtual scene.
Make sure you have correctly set up your device as described in the Setup Guide.
The realvirtual-ar-player prefab enables AR development in your scene.
Search for realvirtual-vr-player and simply drag the prefab into your hierarchy. This initializes the AR development environment in your scene.
The OVRPlayerController manages device tracking and user Input detection. Please refer to the official documentaion of the Meta XR SDK.
The Passthrough object contains the OVR Passthrough Layer component required for enabling passthrough. Refer to the official Meta XR SDK for details.
The Placer object controlls the behaviour of the placement and allows to adjust the parameters for the placement.
The TransformManager persists the transforms of all the placeables in the scene between multiple runtime sessions. To disable this feature, disable the TransformManager game object.
The AR game object contains the OVRSceneManager documented in the Meta XR SDK and the EnvironmentDepthOcclusion game object documented in the Depth API for Unity. Both objects control interactions with the real world environment.
The XR Environment object initializes the scene setup for optimal use with VR or AR. It manages lighting and core environmental aspects such as ground and sky.
The PlayerUI holds the main AR user interface enabling the user to trigger various functionalities.
The player can toggle the main user menu by pressing the A button on the right controller.
Besides the functionality described in VR Modules, the main menu in AR has some additional features described below.
This button toggles the scene mesh. This is the mesh placeable objects can be placed on.
This button toggles depth occlusion. In order to use depth occlusion a seperate installation of the Meta Depth API for Unity is required. Please refer to the official Installation Guide. Once the Meta Depth API is installed navigate to File > Build Settings > Player Settings > Other Settings > Script Compilation, add the META_DEPTH_API
compile switch and press Apply.