CachedTextGenerator no longer has any character info in Unity 5.3
Before the update, I used this code and it worked perfectly:
List<UICharInfo> chars = new List<UICharInfo> ();
Canvas.ForceUpdateCanvases ();
t.cachedTextGenerator.GetCharacters ( chars ); //'t' is a UnityEngine.UI.Text that's in the scene
Now, the list of UICharInfo is empty. Is there a different way to get character info now? If so, can someone enlighten me? Outputting the characterCount also gives 0:
Debug.Log ( t.cachedTextGenerator.characterCount );
Comment
Thanks for that approach, tried it with Unity 5.5.0b4 and it worked