Question by
AzzyDude24601 · Apr 29, 2021 at 07:23 PM ·
raycastvrcanvas
Block some raycasts from world space canvas and ignore others?
I am using the SteamVR plugin to make a VR app in Unity. I am currently working on a world space canvas which the user can interact with using raycast pointers from their controllers.
The problem is there seems to be a raycast being fired from the camera component in the SteamVR camera rig and it is interacting with my world space canvas.
I can stop this from happening by putting a 'Canvas Group' on the canvas and unchecking "Block Raycasts" but then the raycasts from my controllers stop interacting too. Is there a way to block certain raycasts and ignore others?
Comment