Canvas Text Draws behind in-world objects

Avatar
  • updated

I am playing with the Shapes Samples and noticed something with the IMCanvas Sample.

I performed the following steps:

  1. Imported to my project
    1. The Unity Starter Assets – Third Person Controller
    2. The Shapes Library
  2. Included in SampleScene
    1. 3D Object (for the ground)
      1. Plane
    2. Starter Assets (For Third-Person Controls)
      1. PlayerFollowCamera
      2. PlayerArmature
      3. MainCamera
    3. Shapes (for the HUD)
      1. Copy of Canvas from the Shapes Samples Scene: IMCanvas

As I pan the camera around:

  • The Canvas Drawing of shapes shows as expected.
  • The Canvas Drawing of text always draws behind the ground plane. (see images below)

Is this expected behavior?

Is there a recommendation on how to get the HUD Text?

Otherwise, this is a perfect feature and I would like to make use of it.

Image 892

Image 887

Image 888

Image 889

Reporting a bug? please specify Unity version:
2022.3.12f1
Reporting a bug? please specify Shapes version:
Shapes 4.5.0
Reporting a bug? please specify Render Pipeline:
URP