Name Tag
🏷️ NameTag Class
A component that works as a name tag of a speaker with billboarding and localization support.
Namespace:
Esper.FeelSpeak.UI.UGUIInherits from:BillboardedType:class
📦 Fields
Access
Field
Type
Description
public
label
TextMeshProUGUI
The text label (hidden in inspector).
public
speaker
Speaker
The speaker to display the name for.
🧰 Methods
Access
Method
Returns
Description
private
Awake()
void
Initializes the text label component from children.
private
Start()
void
Subscribes to locale changes and updates the name display.
private
OnDestroy()
void
Unsubscribes from locale change events.
public
UpdateName()
void
Updates the name tag display with speaker's name and optional text coloring.
private
OnLocaleChanged(Locale)
void
Handles locale changes by updating the name display.
Last updated