ShowInfoOfPlayer.cs name taq

Options
what i did is attach ShowInfoOfPlayer.cs to player
and create empty child "3d text" i change font style and size
player name taq is work

but for some reason i cant change font size or anything




what wrong ?

Comments

  • micahlg
    Options
    The "ShowInfoOfPlayer" seems to change the textmesh properties. If you want to show the player name, try something like:

    Checking if either the connected photonView is local, or if the PhotonPlayer is local in Start().

    If so, set a string (called player_name or something) to be PhotonNetwork.player.name, or if you have a variable you want to set it to set it to that.

    After that, send out an RPC, inside the RPC set the text mesh text to be equal to the player_name string.

    This is what I usually do, although usually I don't use Text Meshes. But this concept should work.