protected internal bool UnregisterFromStyleGroup()
 {
     if (m_styleGroup != null)
     {
         _styleData = null;
         var v_sucess = m_styleGroup.UnregisterStyleBehaviour(this);
         m_styleGroup = null;
         return(v_sucess);
     }
     return(false);
 }
        protected internal bool RegisterToStyleGroup(bool p_force = false)
        {
            if (SupportStyleGroup)
            {
                if (m_styleGroup == null || p_force)
                {
                    var v_styleGroup = GetComponentInParent <CanvasStyleGroup>();
                    _styleData = null;
                    if (m_styleGroup != null)
                    {
                        UnregisterFromStyleGroup();
                    }
                    m_styleGroup = v_styleGroup;
                }

                if (m_styleGroup != null)
                {
                    return(m_styleGroup.RegisterStyleBehaviour(this));
                }
            }
            return(false);
        }