First thank you for creating the amazing text tool! I ran into this issue when I’m trying to dynamically place something at the end the the text. Here’s the sample code to reproduce the issue. I’m on version 1.0.54(July 2016) with source code. Upgrade to the latest version on asset store without source code does fix the problem, but for the time being we need to stick to the older version. Any workaround will be appreciated, thanks!
using UnityEngine;
using TMPro;
public class ResizeText : MonoBehaviour
{
public TextMeshPro template;
private TextMeshPro _text;
void Start ()
{
_text = Instantiate(template);
_text.text = “test”;
}
void Update () {
Debug.Log(_text.preferredWidth); //0
Debug.Log(_text.preferredWidth); //0
}
}