Documentation for the Unity C# Library
Loading...
Searching...
No Matches
GetVersion.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using TMPro;
4using UnityEngine;
5
6namespace PixoVR.Login
7{
8 public class GetVersion : MonoBehaviour
9 {
10 [SerializeField] TextMeshProUGUI text;
11
12 void Start()
13 {
14 text = GetComponent<TextMeshProUGUI>();
15 text.text = string.Format(text.text, Application.version);
16 }
17 }
18}
TextMeshProUGUI text
[SerializeField]
Definition GetVersion.cs:13