protected void UpdateBounds() { this.m_ViewBounds = new Bounds(this.viewRect.rect.center, this.viewRect.rect.size); this.m_ContentBounds = this.GetBounds(); if (!(this.m_Content == null)) { Vector3 size = this.m_ContentBounds.size; Vector3 center = this.m_ContentBounds.center; Vector2 pivot = this.m_Content.pivot; ScrollRect.InternalUpdateBounds(ref this.m_ViewBounds, ref pivot, ref size, ref center); this.m_ContentBounds.size = size; this.m_ContentBounds.center = center; } }