FairyGUI.UIPanel.MoveUI C# (CSharp) Method

MoveUI() public method

public MoveUI ( Vector3 delta ) : void
delta Vector3
return void
        public void MoveUI(Vector3 delta)
        {
            if (fitScreen != FitScreen.None)
                return;

            this.position += delta;
            if (_ui != null)
                _ui.position = position;
            uiBounds.position = position;
        }

Usage Example

Example #1
0
 static public int MoveUI(IntPtr l)
 {
     try {
         FairyGUI.UIPanel    self = (FairyGUI.UIPanel)checkSelf(l);
         UnityEngine.Vector3 a1;
         checkType(l, 2, out a1);
         self.MoveUI(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
All Usage Examples Of FairyGUI.UIPanel::MoveUI