Forum Discussion
VJ76
6 years agoProtege
How can i switch the laserpointer (UIHelper) from right to the left controller?
When adding the UIHelper prefab from the OculusIntergration, it directly assigns it to the right controller. How can i switch it to the left controller? Do need to change the HandedInputSelector.cs?
Anonymous
6 years ago if (OVRInput.GetDown(OVRInput.Button.PrimaryIndexTrigger,OVRInput.Controller.RTouch))
{
SetActiveController(OVRInput.Controller.RTouch);
}
if (OVRInput.GetDown(OVRInput.Button.PrimaryIndexTrigger, OVRInput.Controller.LTouch))
{
SetActiveController(OVRInput.Controller.LTouch);
}
Replace Update code of HandedInputSelector.cs class and it starts working for both controllers
Replace Update code of HandedInputSelector.cs class and it starts working for both controllers
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device