public Vector3 GetUIWorldPosition() { if (_ui != null) return _ui.displayObject.cachedTransform.position; else return this.container.cachedTransform.TransformPoint(uiBounds.position); }
static public int GetUIWorldPosition(IntPtr l) { try { FairyGUI.UIPanel self = (FairyGUI.UIPanel)checkSelf(l); var ret = self.GetUIWorldPosition(); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }