Version Label

Goals

This is a really simple label script that works on it's own and shows the version and if we are in a debug, release or demo build.

How it works

Add this script to any label you want. It will override the label text automatically to show the version label and build info:

  • release builds - will show only the version text.
  • debug builds - will show the word "debug" besides the version text.
  • demo builds - will show the word "demo" besides the version text.

Visibility Modes

choosing visibility mode in the editor inspector

It has two "visibility" modes that can be chosen:

  • RELEASE - always visible.
  • DEMO_DEBUG - only visible in either demo or debug versions.

With what script it communicates

It doesn't interact with any other scripts but it is present in the scenes:

  • HUD.tscn - only visible in demo or debug
  • PauseScreen.tscn - Always visible