Skip to main content

VersionDisplay

A class in Root.Township, Alta.UI.

Shows the game's build version on a 3D text label. Also runs in the editor.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private TextRenderer version3dLabelThe text that shows the version.
private string versionPrefixText put before the version number.

Methods​

2 private and internal methods
MemberWhat it is
private void Start()Calls UpdateLabel.
private void UpdateLabel()Sets the label to the prefix plus BuildVersion.CurrentVersion.