Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

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 :)
Comment

PREVIOUS NEXT
Code Example
Csharp :: how to set a objects position to the mouse unity 
Csharp :: c# separate string by comma 
Csharp :: how to take user input in string in c# 
Csharp :: how refresh just one table in laravel by terminal 
Csharp :: ldap check user exists 
Csharp :: c# 2-dimensional array sort 
Csharp :: wpf update listview itemssource 
Csharp :: convert int to uint c# 
Csharp :: list of all c# keywords 
Csharp :: how to have is trigger on but also have collisions 
Csharp :: convert string to date c# ddmmyyy 
Csharp :: west of loathing 
Csharp :: querymultiple dapper c# 
Csharp :: loop through all enum values in C# 
Csharp :: timer in c# 
Csharp :: waitforseconds unity 
Csharp :: c# start file 
Csharp :: audio source pause unity 
Csharp :: enable fullscreen unity code 
Csharp :: unity set material 
Csharp :: is keyboard clicked in Unity 
Csharp :: read input c# 
Csharp :: unity target frame rate 
Csharp :: merge sort in c# 
Csharp :: unity default cube mesh 
Csharp :: enum get all values c# 
Csharp :: httpclient soap request c# 
Csharp :: instantiate unity 
Csharp :: c# type from string 
Csharp :: get roaming folder c# 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =