TransformRect() public method

public TransformRect ( Rect rect, DisplayObject targetSpace ) : Rect
rect UnityEngine.Rect
targetSpace DisplayObject null if to world space
return UnityEngine.Rect
コード例 #1
0
 static public int TransformRect(IntPtr l)
 {
     try {
         FairyGUI.DisplayObject self = (FairyGUI.DisplayObject)checkSelf(l);
         UnityEngine.Rect       a1;
         checkValueType(l, 2, out a1);
         FairyGUI.DisplayObject a2;
         checkType(l, 3, out a2);
         var ret = self.TransformRect(a1, a2);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }