Skip to main content

UserGreeter

A class in Root.Township, the global namespace.

A LoggedInTool that shows a random greeting with the logged-in username on a text renderer. Client side.

Constructors​

MemberWhat it is
UserGreeter()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private string[] baseGreetingsGreeting formats; {0} is replaced with the username.
private TextRenderer textRendererText renderer the greeting is shown on.

Methods​

MemberWhat it is
protected override void LoggedIn()Sets the text to a random greeting filled with the logged-in username.
protected override void LoggedOut()Clears the text.