API reference

PlayerNameTagNGO Class

Extends NetworkBehaviour
The class responsible for synchronizing the position and username of a player's name tag to all connected clients when using the Unity Netcode for Gameobjects networking framework.
The position is synced on each network update and the username is synced every time it's changed.

Fields

PlayerName : NetworkVariable< FixedString128Bytes >
The networked string responsible for storing the player's username when using the Unity Netcode for Gameobjects networking framework.
When set, it triggers a visual update of what's displayed in the player name tag for all connected clients.
Signature
NetworkVariable<FixedString128Bytes> PlayerName

Methods

FixedUpdate ()
Signature
void FixedUpdate()
Returns
void
OnNetworkSpawn ()
Signature
override void OnNetworkSpawn()
Returns
override void