Search Unity

If I want to add a text above my player/object why do I need canvas if I can do it without canvas ?

Discussion in 'UGUI & TextMesh Pro' started by haimmoshe, Jan 18, 2022.

  1. haimmoshe

    haimmoshe

    Joined:
    Jun 3, 2017
    Posts:
    237
    I have a simple 3d Cube and then under it as child I added a empty GameObject.
    Then added to the empty GameObject a TextMesh component and that's it.
    Now I can change the empty GameObject position to put it above the object and everything is done.


    CAN'T ADD IMAGES !!!
     
  2. shpkng

    shpkng

    Joined:
    Apr 15, 2019
    Posts:
    7
    Actually you don't. You can always treat textmeshes like any other normal object. But I think canvases make controlling UIs easier, thus if you're doing a UI thing canvases are really a must.

    Edit:
    But do you mean TMP or UGUI's textmesh? Neither of them are meant to be used under a canvas