[SOLVED] 3D UI Text always over objects

Hi guys!!

I want to show a text in 3D space always on top. I tried the method for this sample World space UI rendering on top | Learn PlayCanvas but seems that only works for image elements but not with text elements.

The solution in World to UI Screen space | Learn PlayCanvas isn’t valid for me because I need this in XR… and 2D Screen elements not renders in XR enviroment.

Some easy solution? Thanks!!! :slight_smile:

Hi @chewuaka! Please check out the topic below. You will also find another example project there. :smiley:

1 Like

Works perfect!!! Thanks!!!

1 Like

An alternative method to this is to use render layers and ‘camera stacking’ where one camera renders the world and another camera renders the UI on top: https://playcanvas.com/project/940278/overview/ui-rendering-on-top-with-layers

This has the drawbacks of needing to keep two cameras in ‘sync’ with properties but the advantage is that you don’t have to mess around with materials.

See also: [SOLVED] Render Object Over Another Objects - #4 by yaustar
And [SOLVED] Layers and affect of the 'Order' - #7 by yaustar

1 Like

Thanks @yaustar :heart_eyes: