Search Unity

Question Placing text on a canvas on an object

Discussion in 'UGUI & TextMesh Pro' started by tleylan, Feb 25, 2023.

  1. tleylan

    tleylan

    Joined:
    Jun 17, 2020
    Posts:
    621
    I have to think everyone has this issue as I'm not doing anything odd. I created a cube that I want some text on. I place a canvas (World Space) on the cube face. I place a TextMeshPro object on the canvas. If I don't make an adjustment on the Z axis the text isn't visible and is basically embedded within the cube face.

    Furthermore some small z value doesn't work either. Too large a value and the text is visible in front of the cube face. So what is the value people use or what is the solution to the problem in general? Is there a layering setting or something that I can use?
     
  2. tleylan

    tleylan

    Joined:
    Jun 17, 2020
    Posts:
    621
    I guess this is where my GUI-related questions belong :) In any case I'm still wondering what people do (generally speaking). A dozen videos did not address this at all. We all must have seen how elements start to interact when their planes are too close. Unity apparently gets confused when drawing them.