You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a world space canvas to the scene and add a VRTK_UICanvas component to it
Set the canvas width and height to 500, scale the Canvas to 0.001 on the x and y axes, and position it in the scene
Add an image to the canvas, name it "red", color it red, and stretch it to fill the canvas
Duplicate the canvas, rename its image "green" and color it green
Position the green canvas behind the red canvas
Expected behavior
Pointing a VRTK_UIPointer at the red image should log PointerEnter events for the red image even if the green canvas is behind it and in the path of the ray.
Current behavior
Pointing a VRTK_UIPointer at the red image with the green canvas behind it (and also in the path of the ray) only logs PointerEnter events for the green image.
See screenshot below:
The text was updated successfully, but these errors were encountered:
Can you update the issue title to something that explains the issue so when people are searching the issues they can have an understanding of the problem without needing to read the issue text.
octopusjuice
changed the title
VRTK_UIPointer bug
VRTK_UIPointer bug: Raycast only colliding with the farthest canvas behind other canvases
Nov 14, 2017
octopusjuice
changed the title
VRTK_UIPointer bug: Raycast only colliding with the farthest canvas behind other canvases
VRTK_UIPointer bug: Raycast only registering with the farthest canvas behind other canvases
Nov 14, 2017
Have you tried turning on Blocking Objects = All on the canvas Graphics Raycaster that is appearing behind the other one otherwise it won't consider anything to be blocking it.
Environment
Steps to reproduce
Expected behavior
Pointing a VRTK_UIPointer at the red image should log PointerEnter events for the red image even if the green canvas is behind it and in the path of the ray.
Current behavior
Pointing a VRTK_UIPointer at the red image with the green canvas behind it (and also in the path of the ray) only logs PointerEnter events for the green image.
See screenshot below:
The text was updated successfully, but these errors were encountered: