Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# unity get lines

//Gameobject has to be active (Displayed)
//otherwise it will return the value from the last active frame (0)!
Canvas.ForceUpdateCanvases();
[Your Text Compontent].cachedTextGenerator.lineCount;
Comment

PREVIOUS NEXT
Code Example
Csharp :: run linux command in c# 
Csharp :: how to execute linux command from c# 
Csharp :: audio source pause unity 
Csharp :: rb.addforce c# 
Csharp :: c# how to terminate console application 
Csharp :: c# pick a random item from array 
Csharp :: Comapre Binary Trees 
Csharp :: c# string is not null or empty 
Csharp :: photon rpc 
Csharp :: c# generate random number 
Csharp :: c# countdown timer menutes 
Csharp :: unity check if a animator parameter trigger is activated 
Csharp :: replace double backslash with single backslash c# 
Csharp :: how to get the current time in milliseconds .net 
Csharp :: c# read file current directory 
Csharp :: How do i destroy a prefab without the error? 
Csharp :: how to make an object appear and disappear in unity 
Csharp :: unity new input system keydown 
Csharp :: c# foreach char in string 
Csharp :: movement unity 
Csharp :: how to redirect to extern page in .net core 
Csharp :: how to get hours and minutes from second in c# 
Csharp :: c# md5 
Csharp :: c# console save file 
Csharp :: asp.net data annotations double 
Csharp :: c# encode jpg hiight quality 
Csharp :: exit button unity code 
Csharp :: c# list slice 
Csharp :: enumerable.range contains 
Csharp :: fade image out unity 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =