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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Nameplate implementation for multiplayer game

Discussion in 'Multiplayer' started by kmasui, Aug 17, 2022.

  1. kmasui

    kmasui

    Joined:
    Dec 28, 2018
    Posts:
    8
    I am trying to display a nameplate above a player's head in a multiplayer 3D project.
    How can I make sure that the letters are visible from the front from everyone on the multiplayer?
    Thank you in advance.
     
  2. zrouquiahmed

    zrouquiahmed

    Joined:
    Aug 15, 2022
    Posts:
    3
    @kmasui Have you found a solution to that ? I'm too stuck
     
  3. kmasui

    kmasui

    Joined:
    Dec 28, 2018
    Posts:
    8
    Sorry, I solved myself.
    I placed a Plane above the character's head and used TextMeshPro to display the name.
    I added the following program to the character's script.

    private GameObject namePlate;//Added Plane
    void LateUpdate() {
    namePlate.transform.rotation = Camera.main.transform.rotation;
    }