UnityWebRequest Not Working on Quest 3 - "cannot resolve destination host" error
Hello everyone, I'm currently developing an application for the Quest 3 using Unity. I've encountered an issue where UnityWebRequest isn't functioning as expected. When I attempt to make a request, I receive the error message "cannot resolve destination host." I've tried searching for a solution on the Unity forums but couldn't find any relevant answers. Has anyone else faced a similar problem? If so, could you please share any solutions or workarounds? Any assistance would be greatly appreciated. Thank you in advance!9.2KViews0likes12CommentsHow to geometrically align a 3D model to real furniture?
For my video-see-through AR application I want a model to automatically be placed on the biggest found table surface. I achieved the first step: The model is correctly positioned at the table center. However, the orientationis not correct. I want the model to "lie down" on the table, means laying on the back, facing up, while the longest side of the model is orientated just as the longest side of the table - see the following pictures: After a very long time trying, I could not figure out how to align the model correctly. If you have any idea/hint/ or clue I could try, please let me know. Used Asset for testing: Low Poly Human I added an Empty (called ModelPlacer) where I added the script (see below) and pulled this asset in the modelInstance field. Used Meta XR Building Blocks: Camera Rig Passthrough MR Utility Kit Scene Debugger Effect Mesh Hand Tracking Controller Tracking Technical Specifications: Unity 2022.3.50f1 VR-Glasses: Meta Quest 3 Meta MR Utility Kit Code: using Meta.XR.MRUtilityKit; using System.Collections; using System.Collections.Generic; using UnityEngine; public class ModelPlacer : MonoBehaviour { public GameObject modelPrefab; private GameObject modelInstance; void Start() { MRUK.Instance?.RegisterSceneLoadedCallback(OnSceneLoaded); } private void OnSceneLoaded() { SpawnModel(); AlignModelWithSurface(); } public void SpawnModel() { Vector3 spawnPosition = new Vector3(0.0f, 1.0f, -1.0f); modelInstance = Instantiate(modelPrefab, spawnPosition, Quaternion.identity); } public void AlignModelWithSurface() { var largestSurface = MRUK.Instance?.GetCurrentRoom()?.FindLargestSurface(MRUKAnchor.SceneLabels.TABLE); if (modelInstance != null) { if (largestSurface != null) { modelInstance.transform.SetParent(largestSurface.transform); Renderer modelRenderer = modelInstance.GetComponent<Renderer>(); modelInstance.transform.rotation = Quaternion.Euler(-90, 0, 0); Vector3 modelCenter = modelRenderer.bounds.center; Vector3 surfaceCenter = largestSurface.transform.position; Vector3 positionOffset = surfaceCenter - modelCenter; Vector3 adjustedPosition = modelInstance.transform.position + positionOffset; modelInstance.transform.position = adjustedPosition; } else { Debug.LogWarning("No surface found."); } } else { Debug.LogWarning("modelInstance is null."); } } }932Views0likes3CommentsEvent when the Headset is locked/turned off
I needed to run part of a code when the headset is locked or turned off. My game is multiplayer and I need to communicate that the player has left immediately, and I can't find any way to do this. I've tried all the OVRManager actions but none of them work for locking or when I turn off the headset by pressing the power button. Does anyone know how to accomplish this?427Views0likes0CommentsHow to get the information from Oculus touch analogue in C#
I am trying to figure out how to get the information from the analogue so I can register footstep sounds by the amount of which the player is moving. I don't want the steps to be inconsistent so I want the sounds to slow down or speed up depending how much the player is moving the analogue. I have no idea on how to write the code for this. Can anyone point me in the right direction?Solved1.1KViews0likes2CommentsNo EnableSwitch assembly reference
I am new to unity and C#. I am trying to create a simple VR world for a project i am working on for schools and I keep getting this error: Assets/Oculus/VoiceMod/Scenes/Scripts/VoiceModDemo_Logic.cs(9,9): error CS0246: The type or namespace name `EnableSwitch' could not be found. Are you missing an assembly reference?1.3KViews0likes2CommentsButton Touch State and/or Custom finger poses added to default localAvatar
Hi, I am trying to find a way to get the "button touch state" in Unity of the touch controller through code. Right now I am only seeing this available in the PC SDK section. Can someone help me out here, I would like to make custom finger poses based on whether that value is null or not? If getting the touch controllers button touch state is only available in C++ is there a way for me to ad my custom finger poses to the already default ones without disabling those? Right now a solution I had was to use the animation tool in conjunction with the grip pose scene and save those alterations out to the animator and call those animations out in script based on button presses. However this is disabling the default animations, from what I can see, when you add this to the local avatar custom pose slot. Any help would be appreciated. Thanks!1.6KViews0likes2Comments