UI as texture for 3D object

Hello recently I was trying to implement UI as texture of 3D object.
That’s was seems simple:

  1. Canvas Camera Space.
  2. Additional Camera to render only UI from Canvas.
  3. Script to convert UV coordinate into Canvas and create PointerEvent.

But it doesnt work! When I click PointerEvent appears for each camera.
Render camera sends click events. How to disable it or made this implementation better?

I’d love to help, but need more information on what you actually want to achieve.

About the double click-event, you can configure on the canvas how the raycast should behave and whether it blocks underlying elements.

Tweak with the values and the blocking layers. Should work that clickin on a UI element, won’t trigger a click event on the underlying 3d object in worldspace.

If that doesn’t work, the sequence order of the different click-events should be the same as the ordering of the layers. That could help you also check whether the clickevent is already handled by another layer.