Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Display readable text in the game?

Discussion in 'General Discussion' started by ideo85, Dec 30, 2019.

  1. ideo85

    ideo85

    Joined:
    Dec 29, 2019
    Posts:
    2
    I'm looking to have a computer screen in-game at a desk that a player would go up to and look at and read for their next objective.
    Also a book on a desk that a player could click on and it would open up to read (like for lore) and possible play audio.
    Where would I get started on making something like that? I am new to this.
     
  2. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,553
    https://docs.unity3d.com/Manual/UICanvas.html
    "World Space" part.
     
    Ryiah likes this.
  3. ideo85

    ideo85

    Joined:
    Dec 29, 2019
    Posts:
    2
    Thanks for that. I read through and then looked at this clip which is sort of in the ballpark of what I want:

    However when I add text I don't see it in the game.
    It's just large text as an example for me to see if it works but I don't see it in the beginner FPS tutorial game I'm experimenting with. Only see it in the editor mode:
     
  4. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    10,083
    You absolutely want to use TextMeshPro's text components rather than the old Text components for this.

    https://docs.unity3d.com/Packages/com.unity.textmeshpro@1.3/manual/index.html
     
    angrypenguin, koirat and Ryiah like this.
  5. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    To get in world text to look right you generally need to play with the scale. Changing the for size up and down will leave you with an unreadable mess.