FairyGUI.SelectionShape.Clear C# (CSharp) Метод

Clear() публичный Метод

public Clear ( ) : void
Результат 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

Пример #1
0
 void ClearSelection()
 {
     if (_selectionStart != _caretPosition)
     {
         if (_selectionShape != null)
         {
             _selectionShape.Clear();
         }
         _selectionStart = _caretPosition;
     }
 }
All Usage Examples Of FairyGUI.SelectionShape::Clear