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

PlayerNameTagSpawnerNGO Class

Extends NetworkBehaviour, INameTagSpawner
The class responsible for the networking part of spawning a player's name tag when using the Unity Netcode for Gameobjects networking framework.
It implements the Meta.XR.MultiplayerBlocks.Shared.INameTagSpawner interface and is used by Meta.XR.MultiplayerBlocks.Shared.PlayerNameTagSpawner which handles the non-networking logic.

Properties

Indicates whether this player has fully connected to the game/app room.
You can use this to determine when to spawn the name tag. An implementation of the Meta.XR.MultiplayerBlocks.Shared.INameTagSpawner interface.

Member Functions

Spawns the name tag with the given username for this player.
An implementation of the Meta.XR.MultiplayerBlocks.Shared.INameTagSpawner interface.
Parameters
playerName
The selected username for this player.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon