FairyGUI.SelectionShape.Clear C# (CSharp) Method

Clear() public method

public Clear ( ) : void
return void
        public void Clear()
        {
            if (_rects != null && _rects.Count > 0)
            {
                _rects.Clear();
                _contentRect.Set(0, 0, 0, 0);
                OnSizeChanged(true, true);
                _requireUpdateMesh = true;
            }
        }

Usage Example

 void ClearSelection()
 {
     if (_selectionStart != _caretPosition)
     {
         if (_selectionShape != null)
         {
             _selectionShape.Clear();
         }
         _selectionStart = _caretPosition;
     }
 }
All Usage Examples Of FairyGUI.SelectionShape::Clear