cancel
Showing results for 
Search instead for 
Did you mean: 

How to limit the plane surface to the bounds of the UI actually on screen?

VishalFuturristic
Honored Guest

I am using Oculus Integration SDK (yes, the legacy version currently due to needing to make changes to the Assembly Definitions), and I am making a flat canvas. I have placed a PlaneSurface script on the object holding the canvas component. I have a sibling object called "Surface" that I put components `ClippedPlanSurface` and `BoundsClipper` on. I dragged the Canvas object with `PlaneSurface` into the Clipped Plane Surface component's 'Plane Surface' field. Interaction works just fine ... however ...
The issue is that now I have an infinite plane surface for ray interaction with world space UI, even though the flat panel is just a rectangle right in front of the player. This makes it so I am able to ray cast against an invisible plane even when there is no UI there.
Can anyone help me make the BoundsClipper component work, or somehow to limit the plane surface to the bounds of the UI actually on screen?

0 REPLIES 0