FairyGUI.GObject.SetXY C# (CSharp) Method

SetXY() public method

change the x and y coordinates of the object relative to the local coordinates of the parent.
public SetXY ( float xv, float yv ) : void
xv float x value.
yv float y value.
return void
        public void SetXY(float xv, float yv)
        {
            SetPosition(xv, yv, _z);
        }

Usage Example

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::SetXY