Forum Discussion
enzedda
11 years agoExplorer
Using the mouse buttons
Greetings to you all. My first post. I have my dk2 and i have free Unity. I have setup mydk2 and it is great. I have placed the Oculus Unity4 integration into a simple new Unity scene and all views...
virror
11 years agoExplorer
Raycasting is pretty straight forward really, you just send a ray from a certain point in a certain direction and if the ray hits something you can get hold of the collided object and then do whatever you want with it. Just google "Unity raycast example" or whatever and you should get loads of good results. For getting the mouse press you should look at "Input.GetKey()" in the documentation, it returns true or false if a button is pressed or not and you can then send a raycast if you detect a button press.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago