I have a TextMeshPro object for output and i want to change its text. What i found is that the text is changing but not updating. The weird thing is that i can change it and it updates when it is on start but later on when i try to change it , it does change but do not update.
The TextMeshPro object is inside a canvas so i am using an TextMeshProUGUI. TextMeshPro cannot be used cause it does not allow me to drag and drop the object. Tried also delcaring it with get component at start but it gets worse and text dont even change therefore it dont update.
the only way i found is that when changing the width of the rect transform manually then it updates..
found similar discussions but no solution.
https://forum.unity.com/threads/textmesh-pro-is-not-updating-when-changing-text-programatically.490125/
[SerializeField] private TextMeshProUGUI myOutput;
myOutput.text = "msg";