Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit44fd9e59bd

README.md

PlayerNameLabel

Drives this entity's Text3D with the owning player's name, read from the nearest ancestor PlayerAvatar's synced displayName so every peer renders the same name without a local registry lookup. The label re-rasterises when the display name changes, and in play it hides itself on the local player's own avatar, since name labels exist so other players are identifiable. A label shows a name or nothing: an avatar with no PlayerAvatar (a stock avatar placed as a non-player character) or one whose displayName is empty has its label's text emptied and the label hidden.

Location: src/lua/lib/components/PlayerNameLabel.component