-
Hello, From the documentation, I understand that to create Heads-Up Display(HUD) elements, I need to take over the render loop by assigning a render priority to the useFrame() of each component on the canvas. While I am able to render the HUD element, I am having trouble getting pointer events to register when the HUD element's position or scale changes or the camera changes, I am wondering if I could get some help with understanding what might be going wrong. Here's an example with two spheres, the blue sphere is the background element, and the other one is the HUD element- https://codesandbox.io/s/fragrant-hill-sw2tl?file=/src/index.tsx Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
like this: https://codesandbox.io/s/stoic-breeze-s4ovd?file=/src/App.js
|
Beta Was this translation helpful? Give feedback.
like this: https://codesandbox.io/s/stoic-breeze-s4ovd?file=/src/App.js