TMP_Text textInfo is initialized on Awake!

which isn’t the proper way to do that
why?
because if the TMP is deactivated and a script accesses textInfo before that tmp was activated it’ll nullref
easy to go around that when we know about it but that’s not the proper way to do init for a Unity package
it should be a lazy pull, init when the property is being accessed like this

        public TMP_TextInfo textInfo
        {
            get { if (!m_textInfo) m_textInfo = InitTextInfo(); return m_textInfo; }
        }

1318194

I’ll revise the property to return a new instance / empty TMP_TextInfo if accessed prior to awake.

awesome! thanks

1 Like