Esempio n. 1
0
    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));
    }