Unity Engine documentationScript ReferenceUnityEngineRectmaxThe position of the maximum corner of the rectangle.Read time 1 minuteLast updated 4 days agoDefinition Type: Property Namespace: UnityEngine Assembly: UnityEngine.CoreModule public Vector2 max { get; set; } Remarks Setting this value will resize the rectangle, changing Rect.size to preserve Rect.min.