Mobile game lags when text mesh and gui text updating
Hello. I have problem with my mobile unity 2D game. When text of scores is updating in the script, the game lags. void Start () { ScoresText = gameObject.GetComponent<GUIText>(); } void Update () { scores = (int)(Ball.transform.position.x+40f)/125; ScoresText.text = scores.ToString(); } When I printed
ScoresText.text` in Debug.Log
everything was good. I tried to use Text Mesh and GUI text.
Comment
Your answer
Follow this Question
Related Questions
Updated from 2017 to 2018.2, text is blurry. Help! 1 Answer
TextMeshPro Not Detecting All Hyperlinks 0 Answers
TextMeshPro Set Alpha Color 0 Answers
Fix TextMesh Pro UI outline shader artifacts 4 Answers
GUI Text not showing up :( 7 Answers