New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trigger and Grip button on Oculus did not working #371
Comments
You are trying to use the old input manager to get device features, instead you need to use the new input system. inputDevice.TryGetFeatureValue is not part of the new input system. https://docs.unity3d.com/Packages/com.unity.inputsystem@1.8/manual/QuickStartGuide.html |
You can look at the WebXR XR Interaction Toolkit sample scene to see how the components there listening to controller input. |
Did you manage to solve the issue? |
What can i use instead of XR Grab Interactable script to interact with the 3D model, to rotate them? |
It's up to you... And you can look in Unity's manual or in the source of those samples how to use |
Was the Trigger/Grip issue was solved? Regarding the buttons, you'll have to create your own WebGLTemplate, and write custom HTML/JavaScript code. |
Describe the bug
Trigger and Grip button not function when hover to object to interact.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect that can use both left and right controller to interact with 3D model in my project.
Screenshots
I want to when user play this project, user can interact with this 3d model(can rotate the model using controller in VR Mode). I already attached box collider and model rotation script. When using pc/laptop its working but not working in VR.
Unity info (please complete the following information):
Desktop (please complete the following information):
Headset (please complete the following information):
Smartphone (please complete the following information):
Additional context
This is the script for model rotation:
using System.Collections.Generic; // Added namespace for List<>
using UnityEngine;
using UnityEngine.XR;
public class ModelRotation : MonoBehaviour
{
private bool isRotating = false;
private Vector3 lastTouchPosition;
}
The text was updated successfully, but these errors were encountered: