Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Sync player name and other player props

Discussion in 'Multiplayer' started by zrouquiahmed, Aug 19, 2022.

  1. zrouquiahmed

    zrouquiahmed

    Joined:
    Aug 15, 2022
    Posts:
    3
    Hello,

    I'm building a 2D multiplayer game using Unity2D and Photon and I'm stuck trying to figure out how to sync some data...

    My player prefab is designed like that :
    upload_2022-8-19_1-57-32.png

    and those are my Canvas properties :
    upload_2022-8-19_1-58-8.png

    for now, I only can see my name, which is normal cause I'm using the player's camera as the render Camera.

    I would like to know a solution on how to let the other users also see my name above my player.
    If there is another way to display text and health bar etc and add it to a player's prefab instead of using a Canvas, It'd be perfect.

    Thank you!