Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Player Name with UI System

Discussion in 'UGUI & TextMesh Pro' started by EdgarCarrera, Aug 30, 2014.

  1. EdgarCarrera

    EdgarCarrera

    Joined:
    Apr 21, 2014
    Posts:
    255
    hello guys i want add my player name here: Player name in the top of players. Understand? like tihs picture. its possible with UI ?

    Sin título.jpg

    But i need show to other players.. all players in the game can see de name if the area on 30 meters range
     
  2. Blackpablok

    Blackpablok

    Joined:
    May 6, 2014
    Posts:
    14
    Iam having the same doubt, aabout puting text over 3dObjects, anyone can help? Thanks
     
  3. Senshi

    Senshi

    Joined:
    Oct 3, 2010
    Posts:
    556
    I haven't tried this yet, but I'm guessing it should be possible using a World Space Canvas and perhaps a simple LookAt() script.
     
  4. EdgarCarrera

    EdgarCarrera

    Joined:
    Apr 21, 2014
    Posts:
    255
    can u teach me?
     
  5. Senshi

    Senshi

    Joined:
    Oct 3, 2010
    Posts:
    556
    I recommend you start by watching the UI tutorial videos Unity has put out. This will give you an idea of how it all works, including World Space Canvases. After that, simply look up the Transform.LookAt() function (if you're familiar with scripting).
     
  6. EdgarCarrera

    EdgarCarrera

    Joined:
    Apr 21, 2014
    Posts:
    255
    he show only in 2D for one person not for all