📜  c# unity get lines - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:02.878000             🧑  作者: Mango

代码示例1
//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;