public Rect GetChildRect(string name) { if (mUIObject == null) { return(new Rect()); } Transform trans = UIToolkits.FindChildCheckActive(mUIObject.transform, name); if (trans == null) { return(new Rect()); } return(UIToolkits.GetUIObjectScreenRect(trans)); }
/// <summary> /// Position in screen /// </summary> public Rect GetRect() { return(UIToolkits.GetUIObjectScreenRect(mUIObject.transform)); }