Answers for "c# display a variable to a text gameobject"

C#
1

c# display a variable to a text gameobject

using UnityEngine.UI;  //its a must to access new UI in script
 public class YourClass : MonoBehaviour
 {
     public Text Score_UIText; // assign it from inspector
 void Start()
 {
    Score_UIText.text = yourscore_variable;
 }
 
 }

// I found it on the web IDK if it's work or not, Good luck :)
Posted by: Guest on September-22-2020

Code answers related to "c# display a variable to a text gameobject"

C# Answers by Framework

Browse Popular Code Answers by Language