Files
source/Assets/Scripts/VersionText.cs

16 lines
331 B
C#

using TMPro;
using UnityEngine;
public class VersionText : MonoBehaviour
{
private TMP_Text text;
void Awake()
{
text = gameObject.GetComponent<TMP_Text>();
if (Application.platform != RuntimePlatform.WebGLPlayer)
{
text.text = "Current: v" + Application.version;
}
}
}