How to always render UI on top? #218
-
How would you go about rendering UI on top of everything else? E.g. a menu that shows above the game or hotspots that always render on top of the product? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi, three-mesh-ui components are composed with three.js Object3D, so you can use their renderOrder property normally. I made a fiddle to help you out: https://jsfiddle.net/felixmariotto/g4je73rx/48/ |
Beta Was this translation helpful? Give feedback.
-
Thanks! You went above and beyond to make a working example, I'll be having a play with this tomorrow in my own project from the attached fiddle 😎 |
Beta Was this translation helpful? Give feedback.
Hi, three-mesh-ui components are composed with three.js Object3D, so you can use their renderOrder property normally. I made a fiddle to help you out: https://jsfiddle.net/felixmariotto/g4je73rx/48/