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

PlayerNameTagSpawnerNGO Class

Extends NetworkBehaviour
Implements 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

IsConnected : bool
[Get]
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.
Signature
bool IsConnected

Methods

Spawn ( playerName )
Spawns the name tag with the given username for this player.
An implementation of the Meta.XR.MultiplayerBlocks.Shared.INameTagSpawner interface.
Signature
void Spawn(string playerName)
Parameters
playerName: string  The selected username for this player.
Returns
void