void Generate()
 {
     if (m_richText)
     {
         m_richText.SetSyntaxText(m_richSyntax);
         if (m_widget)
         {
             NGUIRichTextUtil.AdjustDepth(m_richText.gameObject, m_widget.depth);
         }
     }
 }
 void OnDimensionChangeInternal()
 {
     if (m_richText)
     {
         if (m_widget)
         {
             if (m_richText.GetTextWidth() != m_widget.width)
             {
                 m_richText.SetTextWidth(m_widget.width);
                 m_richText.Format();
                 if (m_widget)
                 {
                     NGUIRichTextUtil.AdjustDepth(m_richText.gameObject, m_widget.depth);
                 }
             }
         }
     }
 }