Closed ragson closed 5 months ago
Not sure what you are asking.
If it's how to enter AR/VR session from C# code, There's WebXRManager.ToggleAR
and WebXRManager.ToggleVR
.
You can check if the user is in non-XR mode, AR mode or VR mode using WebXRManager.XRState
and WebXRManager.OnXRChange
.
Hi, i unable to access the WebXRManager script getting compile error can you check the reference image where i missed?
You need to use assembly definition (asmdef), and reference the WebXR asmdef file. https://docs.unity3d.com/Manual/ScriptCompilationAssemblyDefinitionFiles.html
Thank you, Its working.
Hi,
I would like to know how to show AR and VR buttons in Unity canvas from the WebGL page which are displaying in the bottom as default? Could you please help me on this solution.
Regards Kiran.