FairyGUI.GObject.SetSize C# (CSharp) Method

SetSize() public method

Change size.
public SetSize ( float wv, float hv ) : void
wv float Width value.
hv float Height value.
return void
        public void SetSize(float wv, float hv)
        {
            SetSize(wv, hv, false);
        }

Same methods

GObject::SetSize ( float wv, float hv, bool ignorePivot ) : void

Usage Example

示例#1
0
 virtual protected void LayoutModalWaitPane()
 {
     if (_contentArea != null)
     {
         Vector2 pt = _frame.LocalToGlobal(Vector2.zero);
         pt = this.GlobalToLocal(pt);
         _modalWaitPane.SetXY((int)pt.x + _contentArea.x, (int)pt.y + _contentArea.y);
         _modalWaitPane.SetSize(_contentArea.width, _contentArea.height);
     }
     else
     {
         _modalWaitPane.SetSize(this.width, this.height);
     }
 }
All Usage Examples Of FairyGUI.GObject::SetSize