ConstrainToBounds() public method

Constrain the current camera's position to be within the viewable area's bounds.
public ConstrainToBounds ( bool immediate ) : bool
immediate bool
return bool
コード例 #1
0
 static public int ConstrainToBounds(IntPtr l)
 {
     try {
         UIDraggableCamera self = (UIDraggableCamera)checkSelf(l);
         System.Boolean    a1;
         checkType(l, 2, out a1);
         var ret = self.ConstrainToBounds(a1);
         pushValue(l, true);
         pushValue(l, ret);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }