////////////////////////////////////////////////////////////////////////// private void OnEnable() { if (m_Text == null) { return; } m_TextRectTransform = m_Text.GetComponent <RectTransform>(); m_SelfRectTransform = GetComponent <RectTransform>(); m_Text.RegisterDirtyVerticesCallback(Refresh); m_Registered = true; }