Search Unity

Display Player Positions

Discussion in 'FPS.Sample Game' started by teod80, Dec 23, 2018.

  1. teod80

    teod80

    Joined:
    May 25, 2015
    Posts:
    1
    Hi

    I want to display on the client screen the player positions coordinates.
    How can I do that?

    Thanks !
    Daniel
     
  2. AggressiveMastery

    AggressiveMastery

    Joined:
    Nov 19, 2018
    Posts:
    158
    I believe you would toss up a UI Canvas, add a text box to that with a variable to display out your cords.

    Then you would craft a script to scrape the coords from the player model transform and update it to that text box.

    The client and server should have the same cords for how this FPS Sample is built... But that is a guess. Let us know if it is true!