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