Skip to content

NameTag

namespace Griff.Scenes;
public sealed class NameTag : Component

Shows the name of the player an entity belongs to in its Text, e.g. on a child just above each player’s character, so everyone can see who’s who. Offline it shows Offline.

This is a component: its saved properties are on its component page.

public string? Offline { get; set; }

What it shows when not in a network game. Empty shows nothing.

public bool ShowScore { get; set; }

The score after the name, e.g. “Sam 3”.

public bool UseColor { get; set; }

Paint the text the player’s color.