Exemplo n.º 1
0
        private Bounds GetBounds()
        {
            Bounds result;

            if (this.m_Content == null)
            {
                result = default(Bounds);
            }
            else
            {
                this.m_Content.GetWorldCorners(this.m_Corners);
                Matrix4x4 worldToLocalMatrix = this.viewRect.worldToLocalMatrix;
                result = ScrollRect.InternalGetBounds(this.m_Corners, ref worldToLocalMatrix);
            }
            return(result);
        }