public void CloneFromTextMeshPro(TMPro.TextMeshProUGUI text)
 {
     this.font = text.font;
     this.fontSharedMaterial = text.fontSharedMaterial;
     this.fontStyle          = text.fontStyle;
     this.color              = text.color;
     this.colorGradient      = text.colorGradient;
     this.fontSize           = text.fontSize;
     this.alignment          = text.alignment;
     this.enableWordWrapping = text.enableWordWrapping;
     this.overflowMode       = text.overflowMode;
 }
 private void checkRestrict()
 {
     if (_entryVolume.Expanded)
     {
         _layoutElement.ResetMaxHeight();
         _layoutElement.Text.overflowMode = _defaultOverflowMode;
     }
     else
     {
         _defaultOverflowMode             = _layoutElement.Text.overflowMode;
         _layoutElement.MaxHeight         = _restrictedHeight;
         _layoutElement.Text.overflowMode = TMPro.TextOverflowModes.Ellipsis;
     }
 }