API reference
API reference
Select your platform
No SDKs available
No versions available

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

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.

Member Functions

override void OnNetworkSpawn ( )
void FixedUpdate ( )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon