Answers for "unity check how many lines a string is"

C#
1

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;
Posted by: Guest on September-08-2020

Code answers related to "unity check how many lines a string is"

C# Answers by Framework

Browse Popular Code Answers by Language